CodeElement Class

Represents an element of source code, such as keywords, comments or strings, and the regular expression that can be used to identify them.

Definition

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
C#
public class CodeElement
Inheritance
Object    CodeElement

Constructors

CodeElement(String, IEnumerableString) Initializes a new instance of the CodeElement class with the specified name and list of values.
CodeElement(String, String) Initializes a new instance of the CodeElement class with the specified name and regular expression.

Properties

ElementNameIsCssClass Gets or sets a value indicating whether the Name of this CodeElement is a CSS class to be used in the output.
MatchValueProcessor Gets or sets a delegate that will be used to process the value of the regex match.
Name Gets the name of this code element.
Regex Gets the regular expression for this code element.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

See Also