Search Results for

    Class CodeWriter

    Helper class for writing code to files

    Inheritance
    object
    CodeWriter
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RedLoader.Utils
    Assembly: RedLoader.dll
    Syntax
    public class CodeWriter

    Constructors

    CodeWriter(string)

    Declaration
    public CodeWriter(string path)
    Parameters
    Type Name Description
    string path

    Properties

    Content

    Declaration
    public string Content { get; }
    Property Value
    Type Description
    string

    IndentLevel

    Declaration
    public int IndentLevel { get; }
    Property Value
    Type Description
    int

    Methods

    Add(string)

    Declaration
    public CodeWriter Add(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    CodeWriter

    Indent()

    Declaration
    public CodeWriter Indent()
    Returns
    Type Description
    CodeWriter

    Line()

    Declaration
    public CodeWriter Line()
    Returns
    Type Description
    CodeWriter

    Line(string)

    Declaration
    public CodeWriter Line(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    CodeWriter

    Save()

    Declaration
    public void Save()

    Tab()

    Declaration
    public CodeWriter Tab()
    Returns
    Type Description
    CodeWriter

    Unindent()

    Declaration
    public CodeWriter Unindent()
    Returns
    Type Description
    CodeWriter