ICommandContext.cs 580 B

12345678910111213141516171819
  1. #nullable enable
  2. namespace Terminal.Gui;
  3. /// <summary>
  4. /// Describes the context in which a <see cref="Command"/> is being invoked.
  5. /// </summary>
  6. public interface ICommandContext
  7. {
  8. /// <summary>
  9. /// The <see cref="Command"/> that is being invoked.
  10. /// </summary>
  11. public Command Command { get; set; }
  12. //// TODO: Remove this property. With CommandContext<TBindingType> being a generic type, there should be no need for arbitrary data.
  13. ///// <summary>
  14. ///// Arbitrary data.
  15. ///// </summary>
  16. //public object? Data { get; set; }
  17. }