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
minTMinimum value.
maxTMaximum value.
Returns
Type Parameters
TValue type.
Exceptions
- ArgumentException
When
minis greater thanmax.
GetUnderlyingType(Type?)
Attempts to extract the underlying type from the provided Bounds<T>type.
[Pure]
public static Type? GetUnderlyingType(Type? type)
Parameters
typeTypeType to extract the underlying type from.