Table of Contents

Property Instance

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Instance

Gets the singleton IApplication instance used by the legacy static Application model.

[Obsolete("The legacy static Application object is going away. Use Application.Create() for new code.")]
public static IApplication Instance { get; }

Property Value

IApplication

Remarks

For new code, prefer using Create() to get an instance-based application. This property is provided for backward compatibility and internal use.

This property returns the same singleton instance used by the legacy static Application methods like Init(string?) and Run(IRunnable, Func<Exception, bool>?).