TagDirective Class

Represents a tag directive token.

public class TagDirective : Token
Inheritance
Token TagDirective

Constructors

NameDescription
TagDirective(string, string)Initializes a new instance of the TagDirective class.
TagDirective(string, string, Mark, Mark)Initializes a new instance of the TagDirective class.

TagDirective overloads

TagDirective(string, string)

TagDirective.cs

Initializes a new instance of the TagDirective class.

public TagDirective(string handle, string prefix)
Parameters
handle string
The handle.
prefix string
The prefix.

TagDirective(string, string, Mark, Mark)

TagDirective.cs

Initializes a new instance of the TagDirective class.

public TagDirective(string handle, string prefix, Mark start, Mark end)
Parameters
handle string
The handle.
prefix string
The prefix.
start Mark
The start position of the token.
end Mark
The end position of the token.

Properties

NameDescription
HandleGets the handle.
PrefixGets the prefix.

Gets the handle.

public string Handle { get; }

Property value

string The handle.

Gets the prefix.

public string Prefix { get; }

Property value

string The prefix.

Methods

NameDescription
Equals(object?)Determines whether the specified System.Object is equal to the current System.Object.
GetHashCode()Serves as a hash function for a particular type.
ToString()Returns a string that represents the current object.

Equals(object?)

TagDirective.cs

Determines whether the specified System.Object is equal to the current System.Object.

public override bool Equals(object? obj)

Parameters

obj object?
The System.Object to compare with the current System.Object.

Returns

bool true if the specified System.Object is equal to the current System.Object; otherwise, false.

GetHashCode()

TagDirective.cs

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int A hash code for the current Object.

ToString()

TagDirective.cs

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.