Class CandidateUtility
Utility functions for candidate and candidate pair.
Inheritance
System.Object
CandidateUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CandidateUtility
Methods
CandidatePairStateFromString(String)
Convert string to CandidatePairState.
Declaration
public static CandidatePairState CandidatePairStateFromString(string stateString)
Parameters
Type | Name | Description |
---|---|---|
System.String | stateString |
Returns
Type | Description |
---|---|
CandidatePairState |
CandidatePairStateToString(CandidatePairState)
Convert CandidatePairState to string.
Declaration
public static string CandidatePairStateToString(CandidatePairState state)
Parameters
Type | Name | Description |
---|---|---|
CandidatePairState | state |
Returns
Type | Description |
---|---|
System.String |
ProtocolTypeFromString(String)
Convert string to ProtocolType.
Declaration
public static ProtocolType ProtocolTypeFromString(string protocolTypeString)
Parameters
Type | Name | Description |
---|---|---|
System.String | protocolTypeString |
Returns
Type | Description |
---|---|
ProtocolType |
ProtocolTypeToString(ProtocolType)
Convert ProtocolType to string.
Declaration
public static string ProtocolTypeToString(ProtocolType protocolType)
Parameters
Type | Name | Description |
---|---|---|
ProtocolType | protocolType |
Returns
Type | Description |
---|---|
System.String |
TypeFromString(String)
Convert string to CandidateType.
Declaration
public static CandidateType TypeFromString(string typeString)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeString |
Returns
Type | Description |
---|---|
CandidateType |
TypeToString(CandidateType)
Convert CandidateType to string.
Declaration
public static string TypeToString(CandidateType type)
Parameters
Type | Name | Description |
---|---|---|
CandidateType | type |
Returns
Type | Description |
---|---|
System.String |