StringExtensions.GetEnumFromDisplayName<T>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the enum value based on the given enum type and display name.
public static T GetEnumFromDisplayName<T> (this string displayName);
static member GetEnumFromDisplayName : string -> 'T
<Extension()>
Public Function GetEnumFromDisplayName(Of T) (displayName As String) As T
Type Parameters
- T
Parameters
- displayName
- String
The display name.
Returns
T