Class ConstrainedStringRequest
Encapsulates a maximum length for a string.
Inheritance
Implements
Inherited Members
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class ConstrainedStringRequest : IEquatable<ConstrainedStringRequest>
Constructors
| Improve this Doc View SourceConstrainedStringRequest(Int32)
Initializes a new instance of the ConstrainedStringRequest class.
Declaration
public ConstrainedStringRequest(int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maximumLength | The maximum. |
ConstrainedStringRequest(Int32, Int32)
Initializes a new instance of the ConstrainedStringRequest class.
Declaration
public ConstrainedStringRequest(int minimumLength, int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minimumLength | The minimum length. |
System.Int32 | maximumLength | The maximum length. |
Properties
| Improve this Doc View SourceMaximumLength
Gets the maximum length.
Declaration
public int MaximumLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
MinimumLength
Gets the minimum length.
Declaration
public int MinimumLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEquals(ConstrainedStringRequest)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ConstrainedStringRequest other)
Parameters
Type | Name | Description |
---|---|---|
ConstrainedStringRequest | 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. |