Class EnumParser
Namespace: Aurigma.DesignAtoms.Serialization
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class EnumParser
Inheritance: System.Object -> EnumParser
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
TryParse<TEnum>
public static TEnum TryParse<TEnum>(string stringValue, TEnum? defaultValue = null)
where TEnum : struct, IConvertible
Parameters
| Type | Name | Description |
|---|---|---|
System.String | stringValue | |
System.Nullable<<TEnum>> | defaultValue |
Returns
<TEnum>