CodeElement(String, String) Constructor

Initializes a new instance of the CodeElement class with the specified name and regular expression.

Definition

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
C#
public CodeElement(
	string name,
	string regex
)

Parameters

name  String
The name of this pattern. This name will be used as the CSS class name in the generated HTML.
regex  String
The regular expression for this code element.

Exceptions

ArgumentNullExceptionname is or regex is .
ArgumentExceptionname is an empty string.

See Also