Summary
Stores the file name, line number and column number to record a position
in a text file.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["Location"]
class Type type-node
Syntax
[Serializable]
public class Location
Attributes
Type | Description |
---|---|
Serializable |
Constructors
Name | Summary |
---|---|
Location |
Creates a location consisting of a file name. |
Location |
Creates a location consisting of a file name, line number and column number. |
Fields
Name | Constant Value | Summary |
---|---|---|
UnknownLocation |
The unknown location representation.
static
|
Properties
Name | Value | Summary |
---|---|---|
ColumnNumber | int |
Gets the column number for the location.
|
FileName | string |
Gets a string containing the file name for the location.
|
LineNumber | int |
Gets the line number for the location.
|
Methods
Name | Value | Summary |
---|---|---|
ToString |
string |
Returns the file name, line number and a trailing space. An error
message can be appended easily. For unknown locations, returns
an empty string.
|