Table of Contents

Class Range

Namespace
Loehnert.IO.Contracts
Assembly
Loehnert.IO.dll

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

minimum double

Minimum value.

maximum double

Maximum value.

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

double

Max

Gets the maximum value.

public double Max { get; }

Property Value

double

Min

Gets the minimum value.

public double Min { get; }

Property Value

double

Methods

Equals(Range)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Range other)

Parameters

other Range

An object to compare with this object.

Returns

bool

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

ToString()

Returns a string that represents the current object. Format: Min to Max.

public override string ToString()

Returns

string

A string that represents the current object.