Table of Contents

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

line int

The line number.

from int

The starting position.

length int

The length of the element.

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

int

Length

The length of the code element.

public int Length { get; set; }

Property Value

int

Line

The line number where the code element was found.

public int Line { get; set; }

Property Value

int

Methods

CompareTo(FoundedCodeElement?)

Compares this instance to another FoundedCodeElement.

public int CompareTo(FoundedCodeElement? other)

Parameters

other FoundedCodeElement

The other element to compare to.

Returns

int

A value indicating the relative order.