Class Bitmask
- Namespace
- LfrlAnvil
- Assembly
- LfrlAnvil.Core.dll
Creates instances of Bitmask<T> type.
public static class Bitmask
- Inheritance
-
Bitmask
- Inherited Members
Methods
Create<T>(T)
Creates a new Bitmask<T> instance.
[Pure]
public static Bitmask<T> Create<T>(T value) where T : struct, IConvertible, IComparable
Parameters
value
TBitmask value.
Returns
- Bitmask<T>
New Bitmask<T> instance.
Type Parameters
T
Value type.
GetUnderlyingType(Type?)
Attempts to extract the underlying type from the provided Bitmask<T>type
.
[Pure]
public static Type? GetUnderlyingType(Type? type)
Parameters
type
TypeType to extract the underlying type from.
Returns
- Type
Underlying Bitmask<T> type or null when the provided
type
is not related to the Bitmask<T> type.