M_WolfCurses_AttributeExtensions_GetAttributes__1 - Maxwolf/WolfCurses GitHub Wiki

AttributeExtensions.GetAttributes(T) Method

Find the fields in an enum that have a specific attribute with a specific value.

Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static IEnumerable<T> GetAttributes<T>(
	this ICustomAttributeProvider source,
	bool inherit
)
where T : Attribute

Parameters

 

source
Type: System.Reflection.ICustomAttributeProvider
The source.
inherit
Type: System.Boolean
The inherit.

Type Parameters

 

T
[Missing documentation for "M:WolfCurses.AttributeExtensions.GetAttributes``1(System.Reflection.ICustomAttributeProvider,System.Boolean)"]

Return Value

Type: IEnumerable(T)
The [!:IEnumerable].

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICustomAttributeProvider. 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).

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

AttributeExtensions Class
WolfCurses Namespace

⚠️ **GitHub.com Fallback** ⚠️