VersionDirective Class

Represents a version directive token.

public class VersionDirective : Token
Inheritance
Token VersionDirective

Constructors

NameDescription
VersionDirective(Version)Initializes a new instance of the VersionDirective class.
VersionDirective(Version, Mark, Mark)Initializes a new instance of the VersionDirective class.

VersionDirective overloads

VersionDirective(Version)

VersionDirective.cs

Initializes a new instance of the VersionDirective class.

public VersionDirective(Version version)
Parameters
version Version
The version.

VersionDirective(Version, Mark, Mark)

VersionDirective.cs

Initializes a new instance of the VersionDirective class.

public VersionDirective(Version version, Mark start, Mark end)
Parameters
version Version
The version.
start Mark
The start position of the token.
end Mark
The end position of the token.

Properties

NameDescription
VersionGets the version.

Gets the version.

public Version Version { get; }

Property value

Version The version.

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.

Equals(object?)

VersionDirective.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()

VersionDirective.cs

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int A hash code for the current Object.