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: 19.01.00
Syntax
C#
[TypeConverterAttribute(typeof(BinaryStringBinaryStringConverter))]
public sealed class BinaryString : IEnumerable, 
	IComparable<BinaryString>, IComparable<string>, IComparable, 
	IEquatable<BinaryString>, IEquatable<string>, IConvertible, 
	ICloneable

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(ArraySegmentByte, BinaryTextEncoding) Creates a BinaryString with the data bytes and encoding.
Public methodBinaryString(String, BinaryTextEncoding) Creates a BinaryString with the string and encoding.
Public methodBinaryString(String, ArraySegmentByte, BinaryTextEncoding) Creates a new BinaryString.
Public methodBinaryString(String, Boolean, ArraySegmentByte, BinaryTextEncoding) Creates a new BinaryString.
Top
Properties
 NameDescription
Public propertyBytes The encoded byte array (includes any header data, etc); only if BytesValid is true.
Public propertyBytesValid The encoded byte array Bytes is valid.
Public propertyEncoding The binary text encoding.
Public propertyString The string representation.
Top
Methods
 NameDescription
Public methodClone Creates a new object that is a copy of the current instance.
Public methodCompareTo(BinaryString) Compares the current instance with another BinaryString and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodCompareTo(String) Compares the current instance with another string and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in alphabetical order.
Public methodEquals(BinaryString) Indicates whether the current BinaryString is equal to another string.
Public methodEquals(Object) Indicates whether the current BinaryString is equal to another string.
(Overrides ObjectEquals(Object))
Public methodEquals(String) Indicates whether the current BinaryString is equal to another string.
Public methodGetHashCode The default hash code.
(Overrides ObjectGetHashCode)
Public methodToString Returns the current string value.
(Overrides ObjectToString)
Top
Operators
 NameDescription
Public operatorStatic member(BinaryString to String) Implicity converts a BinaryString to a System.String.
Public operatorStatic member(String to BinaryString) Implicity converts a System.String to a BinaryString.
Top
Fields
 NameDescription
Public fieldStatic memberEmpty The empty string.
Top
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