Class EnumHelper
Helper class to allow users to get the values of a enumeration
Inheritance
System.Object
EnumHelper
Namespace: Syncfusion.Windows.PropertyGrid
Assembly: Syncfusion.PropertyGrid.Wpf.dll
Syntax
public static class EnumHelper : Object
Methods
GetValues(Type)
Get all the values of an enumeration of Type enumType
Declaration
public static object[] GetValues(Type enumType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | enumType | Enumeration type |
Returns
| Type | Description |
|---|---|
| System.Object[] | Array of objects |
GetValues<T>()
Get values of an enumeration of type T
Declaration
public static T[] GetValues<T>()
Returns
| Type | Description |
|---|---|
| T[] | List of types in a enumeration |
Type Parameters
| Name | Description |
|---|---|
| T | Enumeration type |