Class RegularExpressionRequest
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Encapsulates a pattern for a regular expression.
public class RegularExpressionRequest : IEquatable<RegularExpressionRequest>Inheritance
object ← RegularExpressionRequest
Implements
IEquatable<RegularExpressionRequest>
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
RegularExpressionRequest(string)
Initializes a new instance of the RegularExpressionRequest class.
public RegularExpressionRequest(string pattern)Parameters
pattern string
The pattern.
Properties
Pattern
Gets the regular expression pattern.
public string Pattern { get; }Property Value
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
true if the specified Object is equal to this instance; otherwise, false.
Exceptions
The obj parameter is null.
Equals(RegularExpressionRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RegularExpressionRequest other)Parameters
other RegularExpressionRequest
An object to compare with this object.
Returns
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
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.