[This is preliminary documentation and is subject to change.]

Provides TryParse method, for parsing enumerations.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)

Syntax

   
 C# 
public static class EnumUtil

Members

      
 All Members  Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
TryParse<(Of <<'(TEnum>)>>)(String, TEnum%, Boolean)
Tries to parse a given value as an enumeration. Even if value is numeric, this method still ensures that given number is among the enumerated constants. This differs in behavior from Enum.Parse, which accepts any valid numeric string (that fits into enumeration's base type).

Inheritance Hierarchy

System..::..Object
  fCraft..::..EnumUtil

See Also