Class NullRuntimeOutput
The output of a session nobody is watching: everything written is discarded.
public sealed class NullRuntimeOutput : IRuntimeOutput
- Inheritance
-
NullRuntimeOutput
- Implements
- Inherited Members
Remarks
What a session composed without an output channel gets, so that a Print statement in one
is a no-op rather than a crash — the same way a VBA host with no Immediate window still
runs Debug.Print.
Properties
Instance
The single instance; it has no state to keep.
public static IRuntimeOutput Instance { get; }
Property Value
LinePosition
The current line position, one-based — 1 at the start of a line, exactly as
MS-VBAL §5.4.5 counts it.
public int LinePosition { get; }
Property Value
Methods
Write(string)
Writes text at the current line position, which advances by its length.
public void Write(string text)
Parameters
textstringThe text to write; it contains no line terminators.
WriteLine()
Ends the current line and returns the line position to 1.
public void WriteLine()