Skip to content

ToEnumValue Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

Overloads ​

NameDescription
object ToEnumValue(string enumerationDescription, Type type)Convert a strings value to the Enum value of type
T ToEnumValue(string enumerationDescription, bool caseSensitive = null)Attempts to convert the provide string to a enum value
object ToEnumValue(string enumerationDescription, Type type, bool caseSensitive)Convert a strings value to the Enum value of type with optional case sensitivity

object ToEnumValue(string enumerationDescription, Type type) ​

csharp
object ToEnumValue(string enumerationDescription, Type type)

Convert a strings value to the Enum value of type

object ToEnumValue(string enumerationDescription, Type type, bool caseSensitive) ​

csharp
object ToEnumValue(string enumerationDescription, Type type, bool caseSensitive)

Convert a strings value to the Enum value of type with optional case sensitivity

T ToEnumValue(string enumerationDescription, bool caseSensitive = null) ​

csharp
T ToEnumValue(string enumerationDescription, bool caseSensitive = null)

Attempts to convert the provide string to a enum value