Method Run
Run(Func<Exception, bool>?, IConsoleDriver?)
Runs the application by creating a Toplevel object and calling Run(Toplevel, Func<Exception, bool>?).
[RequiresUnreferencedCode("AOT")]
[RequiresDynamicCode("AOT")]
public Toplevel Run(Func<Exception, bool>? errorHandler = null, IConsoleDriver? driver = null)
Parameters
errorHandlerFunc<Exception, bool>driverIConsoleDriver
Returns
Run<T>(Func<Exception, bool>?, IConsoleDriver?)
Runs the application by creating a Toplevel-derived object of type T and calling
Run(Toplevel, Func<Exception, bool>?).
[RequiresUnreferencedCode("AOT")]
[RequiresDynamicCode("AOT")]
public T Run<T>(Func<Exception, bool>? errorHandler = null, IConsoleDriver? driver = null) where T : Toplevel, new()
Parameters
errorHandlerFunc<Exception, bool>driverIConsoleDriverThe IConsoleDriver to use. If not specified the default driver for the platform will be used. Must be null if Init(IConsoleDriver?, string?) has already been called.
Returns
- T
The created T object. The caller is responsible for disposing this object.
Type Parameters
T
Run(Toplevel, Func<Exception, bool>?)
Runs the Application using the provided Toplevel view.
public void Run(Toplevel view, Func<Exception, bool>? errorHandler = null)