SourceLineNumber Class
Represents file name and line number for source file
Methods
Section titled “Methods”| Method | Description |
|---|---|
| CreateFromEncoded(encodedSourceLineNumbers) | Creates a source line number from an encoded string. |
| CreateFromUri(uri) | Creates a source line number from a URI. |
| CreateFromXObject(node, offset) | Creates a source line number from an XObject. |
| Equals(obj) | Determines if two SourceLineNumbers are equivalent. |
| GetEncoded() | Returns the SourceLineNumber and parents encoded as a string. |
| GetFromXAnnotation(node) | Get the source line information for the current element. Typically this information is set by the precompiler for each element that it encounters. |
| GetHashCode() | Serves as a hash code for a particular type. |
| ToString() | Shows a string representation of a source line number. |
Properties
Section titled “Properties”| Property | Description |
|---|---|
| FileName | Gets the file name of the source. |
| LineNumber | Gets or sets the line number of the source. |
| Parent | Gets or sets the parent source line number that included this source line number. |
| QualifiedFileName | Gets the file name and line information. |
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8 |
CreateFromEncoded(encodedSourceLineNumbers) Method
Section titled “CreateFromEncoded(encodedSourceLineNumbers) Method”Creates a source line number from an encoded string.
Declaration
Section titled “Declaration”public static SourceLineNumber CreateFromEncoded( string encodedSourceLineNumbers)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| encodedSourceLineNumbers | string | Encoded string to parse. |
CreateFromUri(uri) Method
Section titled “CreateFromUri(uri) Method”Creates a source line number from a URI.
Declaration
Section titled “Declaration”public static SourceLineNumber CreateFromUri( string uri)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| uri | string | Uri to convert into source line number |
CreateFromXObject(node, offset) Method
Section titled “CreateFromXObject(node, offset) Method”Creates a source line number from an XObject.
Declaration
Section titled “Declaration”public static SourceLineNumber CreateFromXObject( System.Xml.Linq.XObject node, int offset)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| node | System.Xml.Linq.XObject | XML node to create source line number from. |
| offset | int | Optional line number offset into XML file not already included in the line information. |
Equals(obj) Method
Section titled “Equals(obj) Method”Determines if two SourceLineNumbers are equivalent.
Declaration
Section titled “Declaration”public bool Equals( System.Object obj)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| obj | System.Object | Object to compare. |
Return value
Section titled “Return value”bool True if SourceLineNumbers are equivalent.
GetEncoded() Method
Section titled “GetEncoded() Method”Returns the SourceLineNumber and parents encoded as a string.
Declaration
Section titled “Declaration”public string GetEncoded()GetFromXAnnotation(node) Method
Section titled “GetFromXAnnotation(node) Method”Get the source line information for the current element. Typically this information is set by the precompiler for each element that it encounters.
Declaration
Section titled “Declaration”public static SourceLineNumber GetFromXAnnotation( System.Xml.Linq.XObject node)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| node | System.Xml.Linq.XObject | Element to get source line information for. |
Return value
Section titled “Return value”SourceLineNumber The source line number used to author the element being processed or null if the preprocessor did not process the element or the node is not an element.
GetHashCode() Method
Section titled “GetHashCode() Method”Serves as a hash code for a particular type.
Declaration
Section titled “Declaration”public int GetHashCode()Return value
Section titled “Return value”int The hash code.
ToString() Method
Section titled “ToString() Method”Shows a string representation of a source line number.
Declaration
Section titled “Declaration”public string ToString()Return value
Section titled “Return value”string String representation of a source line number.
FileName Property
Section titled “FileName Property”Gets the file name of the source.
Declaration
Section titled “Declaration”public string FileName { get; set; }LineNumber Property
Section titled “LineNumber Property”Gets or sets the line number of the source.
Declaration
Section titled “Declaration”public System.Nullable<System.Int32> LineNumber { get; set; }Parent Property
Section titled “Parent Property”Gets or sets the parent source line number that included this source line number.
Declaration
Section titled “Declaration”public SourceLineNumber Parent { get; set; }QualifiedFileName Property
Section titled “QualifiedFileName Property”Gets the file name and line information.
Declaration
Section titled “Declaration”public string QualifiedFileName { get; set; }