Table of Contents

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 T
max T

MinMax(T, T, T)

public MinMax(T value, T min, T max)

Parameters

value T
min T
max 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

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

ranged1 MinMax<T>
ranged2 MinMax<T>

Returns

bool

operator >(MinMax<T>, MinMax<T>)

public static bool operator >(MinMax<T> ranged1, MinMax<T> ranged2)

Parameters

ranged1 MinMax<T>
ranged2 MinMax<T>

Returns

bool

operator >=(MinMax<T>, MinMax<T>)

public static bool operator >=(MinMax<T> ranged1, MinMax<T> ranged2)

Parameters

ranged1 MinMax<T>
ranged2 MinMax<T>

Returns

bool

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

ranged1 MinMax<T>
ranged2 MinMax<T>

Returns

bool

operator <(MinMax<T>, MinMax<T>)

public static bool operator <(MinMax<T> ranged1, MinMax<T> ranged2)

Parameters

ranged1 MinMax<T>
ranged2 MinMax<T>

Returns

bool

operator <=(MinMax<T>, MinMax<T>)

public static bool operator <=(MinMax<T> ranged1, MinMax<T> ranged2)

Parameters

ranged1 MinMax<T>
ranged2 MinMax<T>

Returns

bool