Class RangedNumberRequest

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

Encapsulates a range for values of a given type.

public class RangedNumberRequest : IEquatable<RangedNumberRequest>

Inheritance

objectRangedNumberRequest

Implements

IEquatable<RangedNumberRequest>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

RangedNumberRequest(Type, object, object)

Initializes a new instance of the RangedNumberRequest class.

public RangedNumberRequest(Type operandType, object minimum, object maximum)

Parameters

operandType Type

Type of the operand.

minimum object

The minimum.

maximum object

The maximum.

Properties

Maximum

Gets the maximum value.

public object Maximum { get; }

Property Value

object

Minimum

Gets the minimum value.

public object Minimum { get; }

Property Value

object

OperandType

Gets the type of the operand.

public Type OperandType { get; }

Property Value

Type

Methods

Equals(object)

Determines whether the specified Object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The Object to compare with this instance.

Returns

bool

true if the specified Object is equal to this instance; otherwise, false.

Exceptions

NullReferenceException

The obj parameter is null.

Equals(RangedNumberRequest)

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

public bool Equals(RangedNumberRequest other)

Parameters

other RangedNumberRequest

An object to compare with this object.

Returns

bool

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

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

public override string ToString()

Returns

string