IEnumerableTableSource.cs 439 B

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