MultiCharDelimiter class | QSYS API Reference Guide
Estimated reading time: 5 minutes
Represents a delimiter in a data stream.
Namespace: ASNA.DataGate.Client.CopyData Assembly: ASNA.QSys.DataGate.Client.dll
Inheritance: Object –> Delimiter
Remarks
The Delimiter class is used to represent a delimiter in a data stream. It provides a set of static properties that return commonly used delimiters, such as newline, carriage return, and line feed. It also provides methods and operators for comparing delimiters, converting them to characters and strings, and checking if they represent no delimiter.
Properties
Type | Name | Description |
---|---|---|
String | Value | Gets or sets the value of this instance. |
Char | Value | Gets or sets the value of this instance. |
Methods
Signature | Description |
---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. |
GetHashCode() | Serves as the default hash function. |
op_Equality(MultiCharDelimiter, Delimiter) | Determines whether a instance and a instance are equal. |
op_Equality(Delimiter, MultiCharDelimiter) | Determines whether a instance and a instance are equal. |
op_Inequality(MultiCharDelimiter, Delimiter) | Determines whether a instance and a instance are not equal. |
op_Inequality(Delimiter, MultiCharDelimiter) | Determines whether a instance and a instance are not equal. |
ToString() | Returns a string that represents the current object. |
bool Equals(object obj)
Determines whether the specified object is equal to the current object.
Remarks
This method overrides the base method and performs a check to determine equality:- If the provided object is a instance, it compares the string representation of the instance with the value of the instance using ordinal string comparison.- If the provided object is not a instance, it returns false.
bool Equals(object obj)
Parameters
Type | Parameter name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | true if the specified object is equal to the current object; otherwise, false. |
int GetHashCode()
Serves as the default hash function.
Remarks
This method overrides the base method and simply calls the base implementation.The base implementation of returns a hash code for the current object.
int GetHashCode()
bool op_Equality(MultiCharDelimiter ldlim, Delimiter rdlim)
Determines whether a instance and a instance are equal.
Remarks
This operator performs a series of checks to determine equality:- If both instances are null, they are considered equal.- If one instance is null and the other is not, they are considered not equal.- If both instances are not null, it compares the string representation of the instance with the value of the instance.
bool op_Equality(MultiCharDelimiter ldlim, Delimiter rdlim)
Parameters
Type | Parameter name | Description |
---|---|---|
MultiCharDelimiter | ldlim | The instance to compare. |
Delimiter | rdlim | The instance to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the instances are equal; otherwise, false. |
bool op_Equality(Delimiter ldlim, MultiCharDelimiter rdlim)
Determines whether a instance and a instance are equal.
Remarks
This operator uses the equality operator (==) of the class to compare the two instances.The equality comparison is done by comparing the string representation of the instance with the value of the instance.
bool op_Equality(Delimiter ldlim, MultiCharDelimiter rdlim)
Parameters
Type | Parameter name | Description |
---|---|---|
Delimiter | ldlim | The instance to compare. |
MultiCharDelimiter | rdlim | The instance to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the instances are equal; otherwise, false. |
bool op_Inequality(MultiCharDelimiter ldlim, Delimiter rdlim)
Determines whether a instance and a instance are not equal.
Remarks
This operator is the logical negation of the equality operator (==). It uses the equality operator to compare the two instances and then negates the result.
bool op_Inequality(MultiCharDelimiter ldlim, Delimiter rdlim)
Parameters
Type | Parameter name | Description |
---|---|---|
MultiCharDelimiter | ldlim | The instance to compare. |
Delimiter | rdlim | The instance to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the instances are not equal; otherwise, false. |
bool op_Inequality(Delimiter ldlim, MultiCharDelimiter rdlim)
Determines whether a instance and a instance are not equal.
Remarks
This operator is the logical negation of the equality operator (==). It uses the equality operator to compare the two instances and then negates the result.The equality comparison is done by comparing the string representation of the instance with the value of the instance.
bool op_Inequality(Delimiter ldlim, MultiCharDelimiter rdlim)
Parameters
Type | Parameter name | Description |
---|---|---|
Delimiter | ldlim | The instance to compare. |
MultiCharDelimiter | rdlim | The instance to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the instances are not equal; otherwise, false. |
string ToString()
Returns a string that represents the current object.
Remarks
This method overrides the base method and returns the value of the instance.The value is a string that represents the multi-character delimiter.
string ToString()