Class RegularExpressionRequest

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

Encapsulates a pattern for a regular expression.

public class RegularExpressionRequest : IEquatable<RegularExpressionRequest>

Inheritance

objectRegularExpressionRequest

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

string

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(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

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.