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