Class Range
Range for double values.
public class Range : IEquatable<Range>
- Inheritance
-
Range
- Implements
- Inherited Members
Constructors
Range(double, double)
Initializes a new instance of the Range class.
public Range(double minimum, double maximum)
Parameters
Exceptions
- ArgumentException
Thrown when minimum is bigger than the maximum value.
Properties
Delta
Gets the delta between Min and Max. Delta will be PositiveInfinity if it is above MaxValue.
public double Delta { get; }
Property Value
Max
Gets the maximum value.
public double Max { get; }
Property Value
Min
Gets the minimum value.
public double Min { get; }
Property Value
Methods
Equals(Range)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Range other)
Parameters
other
RangeAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.
ToString()
public override string ToString()
Returns
- string
A string that represents the current object.