Show / Hide Table of Contents

Class Output

Class providing formatted text output.

Inheritance
object
Output
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public static class Output

Properties

| Improve this Doc View Source

DisplayMode

Current output mode.

Declaration
public static Output.DisplayModeType DisplayMode { get; }
Property Value
Type Description
Output.DisplayModeType
| Improve this Doc View Source

WriteEvent

Debug output event. The application should attach an event handler here to redirect the messages to a console.

Declaration
public static Action<string> WriteEvent { get; set; }
Property Value
Type Description
System.Action<T><string>

Methods

| Improve this Doc View Source

ThrowError(string, params object[])

Display error message. Note that this method will also throw an exception.

Declaration
public static void ThrowError(string format, params object[] args)
Parameters
Type Name Description
string format
object[] args
Exceptions
Type Condition
System.Exception
| Improve this Doc View Source

Write(string, params object[])

Display output message. This is a legacy method, and will be removed from the API soon. Use Info, Warning, or Error instead.

Declaration
public static void Write(string format, params object[] args)
Parameters
Type Name Description
string format
object[] args
| Improve this Doc View Source

WriteInfo(string, params object[])

Display informational message. These messages will only be shown if DisplayMode is set to errorsWarningsAndInfo.

Declaration
public static void WriteInfo(string format, params object[] args)
Parameters
Type Name Description
string format
object[] args
| Improve this Doc View Source

WriteLine(string, params object[])

Display output message on a new line. This is a legacy method, and will be removed from the API soon. Use Info, Warning, or Error instead.

Declaration
public static void WriteLine(string format, params object[] args)
Parameters
Type Name Description
string format
object[] args
| Improve this Doc View Source

WriteWarning(string, params object[])

Display warning message. These messages will only be shown if DisplayMode is set to errorsWarningsAndInfo, errorsAndWarnings, or errorsAndWarningsOnce. For errorsAndWarningsOnce, the message will only be shown the first time, repeated warnings with the same text will be suppressed.

Declaration
public static void WriteWarning(string format, params object[] args)
Parameters
Type Name Description
string format
object[] args
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com