Edit

Bagikan melalui


SourceLocation Class

Definition

Identifies a specific location in a target source code file.

public ref class SourceLocation
[System.Serializable]
public class SourceLocation
[<System.Serializable>]
type SourceLocation = class
Public Class SourceLocation
Inheritance
SourceLocation
Attributes

Constructors

SourceLocation(String, Int32, Int32, Int32, Int32)

Creates a new instance of the SourceLocation class that specifies a source code file name and parameters for a range of data within that file.

SourceLocation(String, Int32)

Creates a new instance of the SourceLocation class that specifies a source code file name and the number of a line in that file.

Properties

EndColumn

Gets the final column in a range of one or more columns in the source code file.

EndLine

Gets the final line in a range of one or more lines in the source code file.

FileName

Gets the name of the target source code file.

IsSingleWholeLine

Gets a value that indicates whether the line and column settings define a single, complete line, and not multiple lines, in the source code file.

StartColumn

Gets the first column in a range of one or more columns in the source code file.

StartLine

Gets the first line in a range of one or more lines in the source code file.

Methods

Equals(Object)

Returns a value that indicates whether the source code file line and column settings referenced by the SourceLocation object are an exact match for the line and column settings in another, specified SourceLocation object.

GetHashCode()

Returns a unique value to represent the SourceLocation object.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to