NewLineDelimeter class | QSYS API Reference Guide

Estimated reading time: 5 minutes

Represents a newline delimiter in a data stream.

Namespace: ASNA.DataGate.Client.CopyData Assembly: ASNA.QSys.DataGate.Client.dll

Inheritance: Object –> Delimiter

Remarks

The NewLineDelimeter class is a specialized type of Delimiter that represents a newline delimiter. It overrides certain methods and properties of the Delimiter class to provide behavior specific to newline delimiters. For example, it overrides the Value property to throw an exception when accessed, because a newline delimiter is a string and not a single character.



Properties

Type Name Description
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(NewLineDelimeter, Delimiter) Determines whether a instance and a instance are equal.
op_Equality(Delimiter, NewLineDelimeter) Determines whether a instance and a instance are equal.
op_Inequality(NewLineDelimeter, Delimiter) Determines whether a instance and a instance are not equal.
op_Inequality(Delimiter, NewLineDelimeter) 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 returns true.- If the provided object is not a instance, it calls the base method to compare the two objects.

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(NewLineDelimeter _, Delimiter rdlim)

Determines whether a instance and a instance are equal.

Remarks

This operator checks if the provided instance is a . If it is, the operator returns true. Otherwise, it returns false.

bool op_Equality(NewLineDelimeter _, Delimiter rdlim)

Parameters

Type Parameter name Description
NewLineDelimeter _ The instance to compare.
Delimiter rdlim The instance to compare.

Returns

Type Description
Boolean true if the instance is a ; otherwise, false.

bool op_Equality(Delimiter ldlim, NewLineDelimeter _)

Determines whether a instance and a instance are equal.

Remarks

This operator checks if the provided instance is a . If it is, the operator returns true. Otherwise, it returns false.

bool op_Equality(Delimiter ldlim, NewLineDelimeter _)

Parameters

Type Parameter name Description
Delimiter ldlim The instance to compare.
NewLineDelimeter _ The instance to compare.

Returns

Type Description
Boolean true if the instance is a ; otherwise, false.

bool op_Inequality(NewLineDelimeter 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(NewLineDelimeter ldlim, Delimiter rdlim)

Parameters

Type Parameter name Description
NewLineDelimeter 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, NewLineDelimeter 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(Delimiter ldlim, NewLineDelimeter rdlim)

Parameters

Type Parameter name Description
Delimiter ldlim The instance to compare.
NewLineDelimeter 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 a string that represents a newline in the environment where the code is running. The returned string is obtained from the property.

string ToString()