Class RangedNumberRequest
Encapsulates a range for values of a given type.
Inheritance
Implements
Inherited Members
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class RangedNumberRequest : IEquatable<RangedNumberRequest>
Constructors
| Improve this Doc View SourceRangedNumberRequest(Type, Object, Object)
Initializes a new instance of the RangedNumberRequest class.
Declaration
public RangedNumberRequest(Type operandType, object minimum, object maximum)
Parameters
Type | Name | Description |
---|---|---|
System.Type | operandType | Type of the operand. |
System.Object | minimum | The minimum. |
System.Object | maximum | The maximum. |
Properties
| Improve this Doc View SourceMaximum
Gets the maximum value.
Declaration
public object Maximum { get; }
Property Value
Type | Description |
---|---|
System.Object |
Minimum
Gets the minimum value.
Declaration
public object Minimum { get; }
Property Value
Type | Description |
---|---|
System.Object |
OperandType
Gets the type of the operand.
Declaration
public Type OperandType { get; }
Property Value
Type | Description |
---|---|
System.Type | The type of the operand. |
Methods
| Improve this Doc View SourceEquals(RangedNumberRequest)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(RangedNumberRequest other)
Parameters
Type | Name | Description |
---|---|---|
RangedNumberRequest | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the |
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | The |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |