Action
    Preparing search index...

    Class TextWriter

    Represents a writer that can write a sequential series of characters. This class is abstract.

    Hierarchy (View Summary)

    Index

    Methods

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

      Returns void

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1

    • Writes the text representation of an object to the text string or stream by calling the ToString method on that object.

      Parameters

      • value: any

        The object to write.

      Returns void

    • Writes a character array to the text string or stream.

      Parameters

      Returns void

    • Writes the text representation of a Boolean value to the text string or stream.

      Parameters

      • value: boolean | Boolean

        The Boolean value to write.

      Returns void

    • Writes a character to the text string or stream.

      Parameters

      • value: number | Char

        The character to write to the text stream.

      Returns void

    • Writes the text representation of a decimal value to the text string or stream.

      Parameters

      • value: number | Decimal

        The decimal value to write.

      Returns void

    • Writes the text representation of an 8-byte floating-point value to the text string or stream.

      Parameters

      • value: number | Double

        The 8-byte floating-point value to write.

      Returns void

    • Writes the text representation of a 4-byte signed integer to the text string or stream.

      Parameters

      • value: number | Int32

        The 4-byte signed integer to write.

      Returns void

    • Writes the text representation of an 8-byte signed integer to the text string or stream.

      Parameters

      • value: number | Int64

        The 8-byte signed integer to write.

      Returns void

    • Writes the text representation of a 4-byte floating-point value to the text string or stream.

      Parameters

      • value: number | Single

        The 4-byte floating-point value to write.

      Returns void

    • Writes a string to the text string or stream.

      Parameters

      • value: string | String

        The string to write.

      Returns void

    • Writes the text representation of a 4-byte unsigned integer to the text string or stream.

      Parameters

      • value: number | UInt32

        The 4-byte unsigned integer to write.

      Returns void

    • Writes the text representation of an 8-byte unsigned integer to the text string or stream.

      Parameters

      • value: number | UInt64

        The 8-byte unsigned integer to write.

      Returns void

    • Writes the text representation of an object by calling the ToString method on that object, followed by a line terminator to the text string or stream.

      Parameters

      • value: any

        The object to write. If value is null, only the line terminator is written.

      Returns void

    • Writes an array of characters followed by a line terminator to the text string or stream.

      Parameters

      Returns void

    • Writes the text representation of a Boolean value followed by a line terminator to the text string or stream.

      Parameters

      • value: boolean | Boolean

        The Boolean value to write.

      Returns void

    • Writes a character followed by a line terminator to the text string or stream.

      Parameters

      • value: number | Char

        The character to write to the text stream.

      Returns void

    • Writes the text representation of a decimal value followed by a line terminator to the text string or stream.

      Parameters

      • value: number | Decimal

        The decimal value to write.

      Returns void

    • Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text string or stream.

      Parameters

      • value: number | Double

        The 8-byte floating-point value to write.

      Returns void

    • Writes the text representation of a 4-byte signed integer followed by a line terminator to the text string or stream.

      Parameters

      • value: number | Int32

        The 4-byte signed integer to write.

      Returns void

    • Writes the text representation of an 8-byte signed integer followed by a line terminator to the text string or stream.

      Parameters

      • value: number | Int64

        The 8-byte signed integer to write.

      Returns void

    • Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text string or stream.

      Parameters

      • value: number | Single

        The 4-byte floating-point value to write.

      Returns void

    • Writes a string followed by a line terminator to the text string or stream.

      Parameters

      • value: string | String

        The string to write. If value is null, only the line terminator is written.

      Returns void

    • Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text string or stream.

      Parameters

      • value: number | UInt32

        The 4-byte unsigned integer to write.

      Returns void

    • Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text string or stream.

      Parameters

      • value: number | UInt64

        The 8-byte unsigned integer to write.

      Returns void

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.