Parses the supplied enum and string value to find an associated enum value.
Namespace: CTCT.UtilAssembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
public static Object Parse(
Type type,
string stringValue,
bool ignoreCase
)
public static Object Parse(
Type type,
string stringValue,
bool ignoreCase
)
Public Shared Function Parse ( _
type As Type, _
stringValue As String, _
ignoreCase As Boolean _
) As Object
Public Shared Function Parse ( _
type As Type, _
stringValue As String, _
ignoreCase As Boolean _
) As Object
public:
static Object^ Parse(
Type^ type,
String^ stringValue,
bool ignoreCase
)
public:
static Object^ Parse(
Type^ type,
String^ stringValue,
bool ignoreCase
)
static member Parse :
type : Type *
stringValue : string *
ignoreCase : bool -> Object
static member Parse :
type : Type *
stringValue : string *
ignoreCase : bool -> Object
Parameters
- type
- Type: System Type
Type.
- stringValue
- Type: System String
String value.
- ignoreCase
- Type: System Boolean
Denotes whether to conduct a case-insensitive match on the supplied string value
Return Value
Enum value associated with the string value, or null if not found.