Class Bounds
- Namespace
- LfrlAnvil
- Assembly
- LfrlAnvil.Core.dll
Creates instances of Bounds<T> type.
public static class Bounds
- Inheritance
-
Bounds
- Inherited Members
Methods
Create<T>(T, T)
Creates a new Bounds<T> instance.
[Pure]
public static Bounds<T> Create<T>(T min, T max) where T : IComparable<T>
Parameters
min
TMinimum value.
max
TMaximum value.
Returns
Type Parameters
T
Value type.
Exceptions
- ArgumentException
When
min
is greater thanmax
.
GetUnderlyingType(Type?)
Attempts to extract the underlying type from the provided Bounds<T>type
.
[Pure]
public static Type? GetUnderlyingType(Type? type)
Parameters
type
TypeType to extract the underlying type from.