CSharpViewGeneratorBase

Base class for this transformation

Syntax

public class CSharpViewGeneratorBase

Inheritance

Properties

CurrentIndent

public string CurrentIndent { get; }
Gets the current indent we use when adding lines to the output

Returns

string

Errors

public CompilerErrorCollection Errors { get; }
The error collection for the generation process

Returns

CompilerErrorCollection

GenerationEnvironment

protected StringBuilder GenerationEnvironment { get; set; }
The string builder that generation-time code is using to assemble generated output

Returns

StringBuilder

Session

public virtual IDictionary<string, object> Session { get; set; }
Current transformation session

Returns

IDictionary<string, object>

ToStringHelper

public CSharpViewGeneratorBase.ToStringInstanceHelper ToStringHelper { get; }
Helper to produce culture-oriented representation of an object as a string

Returns

CSharpViewGeneratorBase.ToStringInstanceHelper

Methods

ClearIndent

public void ClearIndent()
Remove any indentation

Error

public void Error(string message)
Raise an error

Parameters

PopIndent

public string PopIndent()
Remove the last indent that was added with PushIndent

Returns

string

PushIndent

public void PushIndent(string indent)
Increase the indent

Parameters

Warning

public void Warning(string message)
Raise a warning

Parameters

Write

public void Write(string format, params object[] args)
Write formatted text directly into the generated output

Parameters

Write

public void Write(string textToAppend)
Write text directly into the generated output

Parameters

WriteLine

public void WriteLine(string format, params object[] args)
Write formatted text directly into the generated output

Parameters

WriteLine

public void WriteLine(string textToAppend)
Write text directly into the generated output

Parameters