Прочетете на английски

Споделяне чрез


FileLinePositionSpan Struct

Definition

Represents a span of text in a source code file in terms of file name, line number, and offset within line. However, the file is actually whatever was passed in when asked to parse; there may not really be a file.

C#
public struct FileLinePositionSpan : IEquatable<Microsoft.CodeAnalysis.FileLinePositionSpan>
C#
public readonly struct FileLinePositionSpan : IEquatable<Microsoft.CodeAnalysis.FileLinePositionSpan>
C#
[System.Runtime.Serialization.DataContract]
public readonly struct FileLinePositionSpan : IEquatable<Microsoft.CodeAnalysis.FileLinePositionSpan>
Inheritance
FileLinePositionSpan
Attributes
Implements

Constructors

Properties

EndLinePosition

Gets the LinePosition of the end of the span.

HasMappedPath

True if the Path is a mapped path.

IsValid

Returns true if the span represents a valid location.

Path

Path, or null if the span represents an invalid value.

Span

Gets the span.

StartLinePosition

Gets the LinePosition of the start of the span.

Methods

Equals(FileLinePositionSpan)

Determines if two FileLinePositionSpan objects are equal.

Equals(Object)

Determines if two FileLinePositionSpan objects are equal.

GetHashCode()

Serves as a hash function for FileLinePositionSpan.

ToString()

Returns a String that represents FileLinePositionSpan.

Operators

Applies to

Продукт Версии
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0