Diff<>(old, new, comparer, predicate, postProcessor) NewArray<>(size1, size2, size3, initialiser) RunMain(main, onUnhandledMain, onUnhandledThread) RunMain(main, onUnhandledMain, onUnhandledThread)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: TAttribute[] GetCustomAttributes<TAttribute>(this Enum)Declarationpublic static TAttribute[] GetCustomAttributes<TAttribute>(
this Enum enumValue
) Summary
Returns the set of custom attributes of the specified TAttribute type that are attached
to the declaration of the enum value represented by enumValue. Generic type parametersTAttribute |
The type of the custom attributes to retrieve. |
Parametersthis Enum | enumValue |
The enum value for which to retrieve the custom attributes. |
Returns
An array containing the custom attributes, or null if enumValue does not correspond
to a declared value. Exceptions- System.ArgumentNullException
enumValue is null .
Remarks
This method keeps an internal cache forever. |