Class RegularExpressionRequest
Encapsulates a pattern for a regular expression.
Inheritance
System.Object
RegularExpressionRequest
Implements
System.IEquatable<RegularExpressionRequest>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class RegularExpressionRequest : IEquatable<RegularExpressionRequest>
Constructors
| Improve this Doc View SourceRegularExpressionRequest(String)
Initializes a new instance of the RegularExpressionRequest class.
Declaration
public RegularExpressionRequest(string pattern)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | The pattern. |
Properties
| Improve this Doc View SourcePattern
Gets the regular expression pattern.
Declaration
public string Pattern { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(RegularExpressionRequest)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(RegularExpressionRequest other)
Parameters
Type | Name | Description |
---|---|---|
RegularExpressionRequest | 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
System.Object.Equals(System.Object)
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
System.Object.GetHashCode()
Implements
System.IEquatable<T>