Class CodeWriter
Helper class for writing code to files
Assembly: RedLoader.dll
Syntax
Constructors
CodeWriter(string)
Declaration
public CodeWriter(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Properties
Content
Declaration
public string Content { get; }
Property Value
IndentLevel
Declaration
public int IndentLevel { get; }
Property Value
Methods
Add(string)
Declaration
public CodeWriter Add(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns
Indent()
Declaration
public CodeWriter Indent()
Returns
Line()
Declaration
Returns
Line(string)
Declaration
public CodeWriter Line(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns
Save()
Declaration
Tab()
Declaration
Returns
Unindent()
Declaration
public CodeWriter Unindent()
Returns