IEnumerableTableSource.cs 541 B

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