Table of Contents

Class Range<T>

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.dll

Represents a range between a minimum and a maximum value.

public sealed class Range<T> : IEquatable<Range<T>> where T : IComparable<T>

Type Parameters

T

The type of the value.

Inheritance
Range<T>
Implements
Inherited Members

Constructors

Range(T, T)

Initializes a new instance of the Range<T> class.

Properties

Max

Gets the maximum value.

Min

Gets the minimum value.

Methods

Equals(Range<T>)

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

Equals(object)

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

GetHashCode()

Serves as the default hash function.

Overlaps(Range<T>)

Determines whether this range overlaps with another range.

ToString()

Returns a string that represents the current object.