#nullable enable namespace Terminal.Gui; #pragma warning disable CS1574 // XML comment has cref attribute that could not be resolved /// /// Provides context for a invocation. /// /// . #pragma warning restore CS1574 // XML comment has cref attribute that could not be resolved public record struct CommandContext : ICommandContext { /// /// Initializes a new instance with the specified , /// /// /// public CommandContext (Command command, TBinding? binding) { Command = command; Binding = binding; } /// public Command Command { get; set; } /// /// The keyboard or mouse minding that was used to invoke the , if any. /// public TBinding? Binding { get; set; } }