Click or drag to resize

enumEnumFlagsT Method (T)

Generates all the enum members of a particular enum, filtering in only ones detected as distinct flags that filter contains.

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IEnumerable<T> EnumFlags<T>(
	this T filter
)
where T : struct, new(), IConvertible

Parameters

filter
Type: T
Filters the results to only ones it contains.

Type Parameters

T
The type of the enum.

Return Value

Type: IEnumerableT
Only flag elements that are contained in filter.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
Remarks
Uses dynamics (once per call).
See Also