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
valueTBitmask value.
Returns
- Bitmask<T>
New Bitmask<T> instance.
Type Parameters
TValue type.
GetUnderlyingType(Type?)
Attempts to extract the underlying type from the provided Bitmask<T>type.
[Pure]
public static Type? GetUnderlyingType(Type? type)
Parameters
typeTypeType to extract the underlying type from.
Returns
- Type
Underlying Bitmask<T> type or null when the provided
typeis not related to the Bitmask<T> type.