CoreGlobalOptionsExtensions
Extension methods for registering typed global options on CoreReplApp.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/CoreGlobalOptionsExtensions.cs
Signature
Section titled “Signature”public static class CoreGlobalOptionsExtensionsInheritance
Section titled “Inheritance”Methods
Section titled “Methods”UseGlobalOptions<T>(CoreReplApp)
Section titled “UseGlobalOptions<T>(CoreReplApp)”Registers a typed global options class. Public settable properties are registered as global options and the class itself is populated from parsed values when injected.
public static CoreReplApp UseGlobalOptions<T>(this CoreReplApp app) where T : class, new()Type Parameters
Section titled “Type Parameters”T: Options class with a parameterless constructor.
Parameters
Section titled “Parameters”app(CoreReplApp): The REPL application.
Returns
Section titled “Returns”CoreReplApp - The application for fluent chaining.