Class EnumExtensions
Provides extension methods to
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class EnumExtensions
Methods
View SourceHasFlagAny<T>(T, T)
Determines whether any of the flags/bits are set within the enum value.
Declaration
public static bool HasFlagAny<T>(this T value, T flags)
where T : Enum
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
T | flags | The flags. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Type Parameters
Name | Description |
---|---|
T | The enum type. |