Class SourceCode
Class representing the source code of a given script
Inheritance
System.Object
SourceCode
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: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class SourceCode : IScriptPrivateResource
Properties
Code
Gets the source code as a string
Declaration
public string Code { get; }
Property Value
System.String
|
Lines
Gets the source code lines.
Declaration
public string[] Lines { get; }
Property Value
System.String[]
|
Name
Gets the name of the source code
Declaration
public string Name { get; }
Property Value
System.String
|
OwnerScript
Gets the script owning this resource.
Declaration
public Script OwnerScript { get; }
Property Value
Script
|
Implements
SourceID
Gets the source identifier inside a script
Declaration
public int SourceID { get; }
Property Value
System.Int32
|
Methods
GetCodeSnippet(SourceRef)
Gets the code snippet represented by a source ref
Declaration
public string GetCodeSnippet(SourceRef sourceCodeRef)
Parameters
SourceRef
sourceCodeRef
The source code reference. |
Returns
System.String
|