Click or drag to resize

BinaryString Class

The binary representation of a string.
Inheritance Hierarchy
SystemObject
  Demo3D.IOBinaryString

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C#
[TypeConverterAttribute(typeof(BinaryStringBinaryStringConverter))]
public class BinaryString : IConvertible

The BinaryString type exposes the following members.

Constructors
  NameDescription
Public methodBinaryString
Creates the empty string.
Public methodBinaryString(String)
Creates a BinaryString with just its string representation.
Public methodBinaryString(String, BinaryTextEncoding)
Creates a BinaryString with the string and encoding.
Public methodBinaryString(Buffer, BinaryTextEncoding)
Creates a BinaryString with the data bytes and encoding.
Public methodBinaryString(String, Buffer, BinaryTextEncoding)
Creates a new BinaryString.
Top
Properties
  NameDescription
Public propertyBytes
The cached encoded byte array (includes any header data, etc).
Public propertyEncoding
The binary text encoding.
Public propertyLength
The length of the string (in characters).
Public propertyString
The string representation.
Top
Methods
  NameDescription
Public methodGetTypeCode
Returns the type code of a BinaryString.
Public methodSet
Sets the value of the BinaryString.
Public methodToBoolean
Returns a boolean whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToByte
Returns a byte whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToChar
Returns a character whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToDateTime
Returns a DateTime point whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToDecimal
Returns a decimal whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToDouble
Returns a double floating point whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToInt16
Returns a 16bit signed integer whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToInt32
Returns a 32bit signed integer whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToInt64
Returns a 64bit signed integer whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToSByte
Returns a signed boolean whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToSingle
Returns a single floating point whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToString
Returns the current string value.
(Overrides ObjectToString.)
Public methodToString(IFormatProvider)
Returns the string representation. A provider supplies culture-specific formatting information.
Public methodToType
Returns an object whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToUInt16
Returns a 16bit unsigned integer whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToUInt32
Returns a 32bit unsigned integer whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Public methodToUInt64
Returns a 64bit unsigned integer whose value is equivalent to the string representation. A provider supplies culture-specific formatting information.
Top
Operators
Remarks
Like System.String except that it handles strings decoded from binary data. Handles the case where the binary data includes nulls and control characters.
See Also