EnumExt.GetFlags<T> Method
Enumerates all flags that are set in the enum value.
Namespace: UltimateXR.Extensions.System
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static IEnumerable<T> GetFlags<T>(
this T self,
bool includeZero = false
)
where T : Enum
Parameters
- self
- Type: T
[Missing documentation for “M:UltimateXR.Extensions.System.EnumExt.GetFlags1(
0,System.Boolean)”] - includeZero (Optional)
- Type: System.Boolean
Whether to include the 0 in the list
Type Parameters
- T
- [Missing
documentation for “M:UltimateXR.Extensions.System.EnumExt.GetFlags 1(
0,System.Boolean)”]
Return Value
Type: IEnumerable<T>
List of flags set in the enum value
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).