Class FoundedCodeElement
- Namespace
- SunamoRoslyn._public
- Assembly
- SunamoRoslyn.dll
Represents a code element found during source code search or indexing.
public class FoundedCodeElement : IComparable<FoundedCodeElement>
- Inheritance
-
FoundedCodeElement
- Implements
- Inherited Members
- Extension Methods
Constructors
FoundedCodeElement(int, int, int)
Initializes a new instance of the FoundedCodeElement class.
public FoundedCodeElement(int line, int from, int length)
Parameters
Properties
From
The starting position of the code element. Is -1 if location is not known (search in content etc.).
public int From { get; set; }
Property Value
Length
The length of the code element.
public int Length { get; set; }
Property Value
Line
The line number where the code element was found.
public int Line { get; set; }
Property Value
Methods
CompareTo(FoundedCodeElement?)
Compares this instance to another FoundedCodeElement.
public int CompareTo(FoundedCodeElement? other)
Parameters
otherFoundedCodeElementThe other element to compare to.
Returns
- int
A value indicating the relative order.