Class MinMax<T>
- Namespace
- Glitch9
public class MinMax<T> where T : IComparable<T>
Type Parameters
T
- Inheritance
-
MinMax<T>
- Inherited Members
- Extension Methods
Constructors
MinMax()
public MinMax()
MinMax(T, T)
public MinMax(T min, T max)
Parameters
min
Tmax
T
MinMax(T, T, T)
public MinMax(T value, T min, T max)
Parameters
value
Tmin
Tmax
T
Properties
Max
public T Max { get; }
Property Value
- T
Min
public T Min { get; }
Property Value
- T
Value
public T Value { get; set; }
Property Value
- T
Methods
Equals(MinMax<T>)
protected bool Equals(MinMax<T> other)
Parameters
other
MinMax<T>
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(MinMax<T>, MinMax<T>)
public static bool operator ==(MinMax<T> ranged1, MinMax<T> ranged2)
Parameters
Returns
operator >(MinMax<T>, MinMax<T>)
public static bool operator >(MinMax<T> ranged1, MinMax<T> ranged2)
Parameters
Returns
operator >=(MinMax<T>, MinMax<T>)
public static bool operator >=(MinMax<T> ranged1, MinMax<T> ranged2)
Parameters
Returns
implicit operator T(MinMax<T>)
public static implicit operator T(MinMax<T> ranged)
Parameters
ranged
MinMax<T>
Returns
- T
operator !=(MinMax<T>, MinMax<T>)
public static bool operator !=(MinMax<T> ranged1, MinMax<T> ranged2)
Parameters
Returns
operator <(MinMax<T>, MinMax<T>)
public static bool operator <(MinMax<T> ranged1, MinMax<T> ranged2)
Parameters
Returns
operator <=(MinMax<T>, MinMax<T>)
public static bool operator <=(MinMax<T> ranged1, MinMax<T> ranged2)