GH_SourceCodeLines

List<1>References
Represents a collection of source code lines.

Properties

Blocks

#
public List<GH_SourceCodeBlock> Blocks { get; }
Break this collection of lines into distinct blocks.

Methods

Add

#
public void Add(string text, bool readonly)
text (string)
readonly (bool)

FindNthBlock

#
public GH_SourceCodeBlock FindNthBlock(int N, bool b_include_readonly, bool b_include_editable)
Find the Nth block of source code lines that adheres to the given parameters.
N (int)Block offset (one based)
b_include_readonly (bool)If True, blocks which are Readonly will be included.
b_include_editable (bool)If True, blocks which are not ReadOnly will be included.

GetLines

#
public List<string> GetLines(GH_SourceCodeBlock block)
block (GH_SourceCodeBlock)

StringSplit

#
public static List<string> StringSplit(string delim, string stream)
Splits a string into substrings.
delim (string)String to split with
stream (string)String to split