Operator Implicit
Implicit(TrustStatus to String)
Converts a TrustStatus to it's name/string representation.
Declaration
public static implicit operator string (TrustStatus status)
Parameters
| Type | Name | Description |
|---|---|---|
| TrustStatus | status | The status to convert. |
Returns
| Type | Description |
|---|---|
| System.String |
Implicit(String to TrustStatus)
Performs a case insensitive conversion of a string ('active' or 'cancelled') to either Active or Cancelled.
Declaration
public static implicit operator TrustStatus(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The string to convert. |
Returns
| Type | Description |
|---|---|
| TrustStatus |
Remarks
Unrecognised strings will be converted to null.