Class CandidateUtility
Utility functions for candidate and candidate pair.
Inheritance
System.Object
CandidateUtility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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. |
stateString |
Returns
Type | Description |
---|---|
Candidate |
CandidatePairStateToString(CandidatePairState)
Convert CandidatePairState to string.
Declaration
public static string CandidatePairStateToString(CandidatePairState state)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
state |
Returns
Type | Description |
---|---|
System. |
ProtocolTypeFromString(String)
Convert string to ProtocolType.
Declaration
public static ProtocolType ProtocolTypeFromString(string protocolTypeString)
Parameters
Type | Name | Description |
---|---|---|
System. |
protocolTypeString |
Returns
Type | Description |
---|---|
Protocol |
ProtocolTypeToString(ProtocolType)
Convert ProtocolType to string.
Declaration
public static string ProtocolTypeToString(ProtocolType protocolType)
Parameters
Type | Name | Description |
---|---|---|
Protocol |
protocolType |
Returns
Type | Description |
---|---|
System. |
TypeFromString(String)
Convert string to CandidateType.
Declaration
public static CandidateType TypeFromString(string typeString)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeString |
Returns
Type | Description |
---|---|
Candidate |
TypeToString(CandidateType)
Convert CandidateType to string.
Declaration
public static string TypeToString(CandidateType type)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
type |
Returns
Type | Description |
---|---|
System. |