Class
EnumerationHelper

Definition

Namespace:Telerik.OpenAccess.Helpers

Assembly:Telerik.OpenAccess.dll

Syntax:

cs-api-definition
public class EnumerationHelper

Inheritance: objectEnumerationHelper

Constructors

EnumerationHelper()

Declaration

cs-api-definition
public EnumerationHelper()

Methods

ConvertEnumValue<TInput, TResult>(object)

Declaration

cs-api-definition
public static TResult ConvertEnumValue<TInput, TResult>(object value) where TInput : struct where TResult : struct

Parameters

value

object

Returns

TResult

GetEnumValue<T>(object, T)

Declaration

cs-api-definition
public static T GetEnumValue<T>(object value, T defaultValue)

Parameters

value

object

defaultValue

T

Returns

T

GetEnumValue<T>(object, T, bool)

Declaration

cs-api-definition
public static T GetEnumValue<T>(object value, T defaultValue, bool removeUnderscore)

Parameters

value

object

defaultValue

T

removeUnderscore

bool

Returns

T

GetEnumValue<T>(string, T)

Declaration

cs-api-definition
public static T GetEnumValue<T>(string value, T defaultValue)

Parameters

value

string

defaultValue

T

Returns

T

IsEnumValueDefined(Type, string)

Declaration

cs-api-definition
public static bool IsEnumValueDefined(Type type, string value)

Parameters

type

Type

value

string

Returns

bool

IsEnumValueDefined<T>(object)

Declaration

cs-api-definition
public static bool IsEnumValueDefined<T>(object enumValue) where T : struct

Parameters

enumValue

object

Returns

bool