Click or drag to resize

EnumExtensionGetAttributeTAttribute Method

This method retrieves a specific attribute (TAttribute) associated with the given enum value. It returns the attribute instance if found, or null if the attribute is not present.

Namespace: QsInformatica.Utils
Assembly: QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
public static TAttribute GetAttribute<TAttribute>(
	this Enum value
)
where TAttribute : Attribute

Parameters

value  Enum

[Missing <param name="value"/> documentation for "M:QsInformatica.Utils.EnumExtension.GetAttribute``1(System.Enum)"]

Type Parameters

TAttribute

[Missing <typeparam name="TAttribute"/> documentation for "M:QsInformatica.Utils.EnumExtension.GetAttribute``1(System.Enum)"]

Return Value

TAttribute

[Missing <returns> documentation for "M:QsInformatica.Utils.EnumExtension.GetAttribute``1(System.Enum)"]

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