SourceLocation Structure
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Represents a source location.
Namespace: System.Web.Razor.Text
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Structure SourceLocation _
Implements IEquatable(Of SourceLocation), IComparable(Of SourceLocation)
'Usage
Dim instance As SourceLocation
[SerializableAttribute]
public struct SourceLocation : IEquatable<SourceLocation>,
IComparable<SourceLocation>
[SerializableAttribute]
public value class SourceLocation : IEquatable<SourceLocation>,
IComparable<SourceLocation>
[<SealedAttribute>]
[<SerializableAttribute>]
type SourceLocation =
struct
interface IEquatable<SourceLocation>
interface IComparable<SourceLocation>
end
JScript suports the use of structures, but not the declaration of new ones.
The SourceLocation type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
SourceLocation | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the SourceLocation class. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
AbsoluteIndex | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the absolute index for the source location. |
![]() |
CharacterIndex | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the character index for the source location. |
![]() |
LineIndex | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the line index for the source location. |
Top
Methods
Name | Description | |
---|---|---|
![]() ![]() |
Add | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds the two SourceLocation object. |
![]() ![]() |
Advance | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Advances the specified object to the given location. |
![]() |
CompareTo | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Compares current object to the other object. |
![]() |
Equals(Object) | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the specified object is equal to the current object. (Overrides ValueType.Equals(Object).) |
![]() |
Equals(SourceLocation) | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the current SourceLocation object is equal to the other SourceLocation object. |
![]() |
GetHashCode | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the hash code for this instance. (Overrides ValueType.GetHashCode().) |
![]() |
GetType | (Inherited from Object.) |
![]() ![]() |
Subtract | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Subtracts the first object to the second object. |
![]() |
ToString | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns a string representation of the source location. (Overrides ValueType.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
![]() ![]() |
Addition | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds the two SourceLocation object. |
![]() ![]() |
Equality | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the two objects are equal. |
![]() ![]() |
GreaterThan | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the first object is greater than the second object. |
![]() ![]() |
Inequality | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the two SourceLocationobject are not equal. |
![]() ![]() |
LessThan | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the first object is less than the second object. |
![]() ![]() |
Subtraction | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
Top
Fields
Name | Description | |
---|---|---|
![]() ![]() |
Undefined | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
![]() ![]() |
Zero | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.