Class EnumExtensions
Holds extension methods for System.Enum class.
Inheritance
System.Object
EnumExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public static class EnumExtensions
Methods
ConvertTo<T>(Object)
Converts value to the enumerator of type T.
Declaration
public static T ConvertTo<T>(object value)
Parameters
System.Object
value
Value to be converted. |
Returns
T
Value converted to the enumerator type. |
Type Parameters
T
Type of the enumerator to convert to. |
GetValues(Type)
Retrieves an array of the values of the constants in a specified enumeration.
Declaration
public static object[] GetValues(Type enumType)
Parameters
System.Type
enumType
An enumeration type. |
Returns
System.Object[]
|