Share via


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
Public method 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
Public property 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.
Public property 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.
Public property 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
Public methodStatic member 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.
Public methodStatic member 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.
Public method 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.
Public method 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).)
Public method 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.
Public method 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().)
Public method GetType (Inherited from Object.)
Public methodStatic member 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.
Public method 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
Public operatorStatic member 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.
Public operatorStatic member 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.
Public operatorStatic member 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.
Public operatorStatic member 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.
Public operatorStatic member 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.
Public operatorStatic member Subtraction This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Top

Fields

  Name Description
Public fieldStatic member Undefined This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public fieldStatic member 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.

See Also

Reference

System.Web.Razor.Text Namespace