Class Range

| MongoDB CSharp Driver API Reference (original) (raw)

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

Implements

Inherited Members

Constructors

Range(T, T)

Initializes a new instance of the Range class.

Properties

Max

Gets the maximum value.

Min

Gets the minimum value.

Methods

Equals(Range)

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)

Determines whether this range overlaps with another range.

ToString()

Returns a string that represents the current object.