Operator Equality
Equality(TransactionStatus, String)
Provides comparisons against strings
Declaration
public static bool operator ==(TransactionStatus status, string comparisonValue)
Parameters
Type | Name | Description |
---|---|---|
TransactionStatus | status | The TransactionStatus being compared. |
System.String | comparisonValue | The string being compared. |
Returns
Type | Description |
---|---|
System.Boolean | True if the string is a case insensitive match to the Name value. |
Remarks
Comparisons are made against the Name property.
Equality(String, TransactionStatus)
Provides comparisons against strings
Declaration
public static bool operator ==(string comparisonValue, TransactionStatus status)
Parameters
Type | Name | Description |
---|---|---|
System.String | comparisonValue | The string being compared. |
TransactionStatus | status | The TransactionStatus being compared. |
Returns
Type | Description |
---|---|
System.Boolean | True if the string is a case insensitive match to the Name value. |
Remarks
Comparisons are made against the Name property.