SourceLocation Estructura

Definición

Ubicación en un archivo de Razor.

public value class SourceLocation : IComparable<Microsoft::AspNetCore::Razor::SourceLocation>, IEquatable<Microsoft::AspNetCore::Razor::SourceLocation>
public struct SourceLocation : IComparable<Microsoft.AspNetCore.Razor.SourceLocation>, IEquatable<Microsoft.AspNetCore.Razor.SourceLocation>
type SourceLocation = struct
Public Structure SourceLocation
Implements IComparable(Of SourceLocation), IEquatable(Of SourceLocation)
Herencia
SourceLocation
Implementaciones

Constructores

SourceLocation(Int32, Int32, Int32)

Inicializa una nueva instancia de la clase SourceLocation.

SourceLocation(String, Int32, Int32, Int32)

Inicializa una nueva instancia de la clase SourceLocation.

Campos

Undefined

Un sin definir SourceLocation .

Zero

SourceLocationCon AbsoluteIndex , LineIndex y CharacterIndex inicializado en 0.

Propiedades

AbsoluteIndex
CharacterIndex
FilePath

Ruta de acceso del archivo.

LineIndex

Obtiene el índice de base 1 de la línea a la que hace referencia esta ubicación de origen.

Métodos

Advance(SourceLocation, String)

Avanza SourceLocation por la longitud de text .

CompareTo(SourceLocation)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(SourceLocation)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operadores

Addition(SourceLocation, SourceLocation)

Agrega dos SourceLocation .

Equality(SourceLocation, SourceLocation)

Determina si los operandos son iguales.

GreaterThan(SourceLocation, SourceLocation)

Determina si el primer operando es mayor que el segundo operando.

Inequality(SourceLocation, SourceLocation)

Determina si los operandos no son iguales.

LessThan(SourceLocation, SourceLocation)

Determina si el primer operando es menor que el segundo operando.

Subtraction(SourceLocation, SourceLocation)

Resta dos SourceLocation s.

Se aplica a