IEnumerableTableSource.cs 463 B

123456789101112131415
  1. #nullable disable
  2. namespace Terminal.Gui.Views;
  3. /// <summary>
  4. /// Interface for all <see cref="ITableSource"/> which present an object per row (of type <typeparamref name="T"/>
  5. /// ).
  6. /// </summary>
  7. public interface IEnumerableTableSource<T> : ITableSource
  8. {
  9. /// <summary>Return all objects in the table.</summary>
  10. IEnumerable<T> GetAllObjects ();
  11. /// <summary>Return the object on the given row.</summary>
  12. T GetObjectOnRow (int row);
  13. }