RegexRunnerFactory Class

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates a RegexRunner class for a compiled regular expression.

Namespace:   System.Text.RegularExpressions
Assembly:  System (in System.dll)

System::Object
  System.Text.RegularExpressions::RegexRunnerFactory

public ref class RegexRunnerFactory abstract 

NameDescription
System_CAPS_protmethodRegexRunnerFactory()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the RegexRunnerFactory class.

NameDescription
System_CAPS_protmethodCreateInstance()

This API supports the product infrastructure and is not intended to be used directly from your code. When overridden in a derived class, creates a RegexRunner object for a specific compiled regular expression.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

A RegexRunner object executes a compiled regular expression. A regular expression that is compiled to an assembly becomes a type in that assembly, and an object of that type is typically created using reflection. However, creating an object by reflection is an expensive operation. The RegexRunnerFactory class improves the performance of the .NET Framework by providing the CreateInstance method, which creates a RegexRunner object for a specific compiled regular expression.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: