Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: T Parse<T>(string)

Declaration

public static T Parse<T>(
    string value
)

Summary

Returns the enum value corresponding to the specified string.

Generic type parameters

T
  • Must derive from: System.ValueType.
  • Must have a default constructor.
  • Must be a non-nullable value type.
The enum type from which to retrieve the value.

Parameters

stringvalueThe string value for which to return the corresponding enum value.