Click or drag to resize
EnumTEnumParse Method
Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object. A parameter specifies whether the operation is case-insensitive.

Namespace: Bobs
Assembly: Bobs.Utilities (in Bobs.Utilities.dll) Version: 0.1.0-dev001
Syntax
public static TEnum Parse(
	string value,
	bool ignoreCase
)

Parameters

value
Type: SystemString
A string containing the name or value to convert.
ignoreCase
Type: SystemBoolean
true to ignore case; false to regard case.

Return Value

Type: TEnum
An object of type TEnum whose value is represented by value.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentExceptionvalue is either an empty string ("") or only contains white space.-or- value is a name, but not one of the named constants defined for the enumeration.
OverflowExceptionvalue is outside the range of the underlying type of TEnum.
See Also