| EnumHelperTryParseT Method |
Converts the string representation of the name or numeric value of one or more enumerated
constants to an equivalent enumerated object.
Namespace: DigitalRuneAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static bool TryParse<T>(
string text,
bool ignoreCase,
out T value
)
Public Shared Function TryParse(Of T) (
text As String,
ignoreCase As Boolean,
<OutAttribute> ByRef value As T
) As Boolean
public:
generic<typename T>
static bool TryParse(
String^ text,
bool ignoreCase,
[OutAttribute] T% value
)
static member TryParse :
text : string *
ignoreCase : bool *
value : 'T byref -> bool
Parameters
- text
- Type: SystemString
The string representation of the name or numeric value. - ignoreCase
- Type: SystemBoolean
If set to ignore case; otherwise, regard case.
- value
- Type: T
The converted enumeration value.
Type Parameters
- T
- The type of enumeration.
Return Value
Type:
Boolean if the string was converted successfully; otherwise,
.
See Also