Click or drag to resize

HelperGetEnumFromDescriptionT Method

Returns the enum value having the given Description attribute text (or value name), or the default value if not found

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public static T GetEnumFromDescription<T>(
	string description,
	T defaultValue
)
where T : Enum

Parameters

description  String
 
defaultValue  T
 

Type Parameters

T

Return Value

T
See Also