Show / Hide Table of Contents

Class FragmentBase

Provides a base class for source code fragments

Inheritance
System.Object
FragmentBase
SourceDocument
SourceFragment
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CilTools.SourceCode
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public abstract class FragmentBase

Properties

ColEnd

Gets or sets the column number (zero-based) where this fragment ends in the source file

Declaration
public int ColEnd { get; set; }
Property Value
Type Description
System.Int32

ColStart

Gets or sets the column number (zero-based) where this fragment starts in the source file

Declaration
public int ColStart { get; set; }
Property Value
Type Description
System.Int32

LineEnd

Gets or sets the line number (zero-based) where this fragment ends in the source file

Declaration
public int LineEnd { get; set; }
Property Value
Type Description
System.Int32

LineStart

Gets or sets the line number (zero-based) where this fragment starts in the source file

Declaration
public int LineStart { get; set; }
Property Value
Type Description
System.Int32

Text

Gets or sets the source code of this fragment

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

Methods

GetAdditionalInfo(String)

Gets an additional implementation-defined information about this fragment

Declaration
public object GetAdditionalInfo(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Object

The requested value, or null if it is not set

SetAdditionalInfo(String, Object)

Sets an additional implementation-defined information about this fragment

Declaration
public void SetAdditionalInfo(string name, object val)
Parameters
Type Name Description
System.String name
System.Object val
Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX