In This Article

DynamicLexicalMacro Class

Defines a macro, which is a named regular expression.

public class DynamicLexicalMacro : IKeyedObject
Inheritance:
object object
Implements:
IKeyedObject

Constructors

DynamicLexicalMacro(string, string)

Initializes a new instance of the LexicalMacro class.

public DynamicLexicalMacro(string key, string pattern)
Parameter Type Description
key string

The key of the macro.

pattern string

The text regular expression source.

Properties

Key

Gets a string-based key that identifies the object.

public string Key { get; }

Property Value

string:

A string-based key that identifies the object.

Pattern

Gets the text regular expression source.

public string Pattern { get; }

Property Value

string:

The text regular expression source.

Tag

Gets or sets the object that contains user-defined data about the object.

public object Tag { get; set; }

Property Value

object:

An object that contains user-defined data about the object. The default is null.

Remarks

Any type derived from the object class can be assigned to this property.

Methods

ToString()

Creates and returns a string representation of the current object.

public override string ToString()

Returns

string:

A string representation of the current object.

Inherited Members