For Babelfish Release 1.11.1.3

EnumHelperDescription Method

Returns the Description attribute of an enum. If Description is not an attribute returns the .toString() value.

Definition

Namespace: Scopos.BabelFish.Helpers
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public static string Description(
	this Enum value
)

Parameters

value  Enum

Return Value

String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also