File size: 528 Bytes
90ca39a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
using System.Collections.Generic;
namespace AIMA.Agent.Table
{
public interface ITable<RowHeaderType, ColumnHeaderType, ValueType> where ValueType : struct
{
List<RowHeaderType> RowHeaders { get; init; }
List<ColumnHeaderType> ColumnHeaders { get; init; }
Dictionary<RowHeaderType, Dictionary<ColumnHeaderType, ValueType>> Rows { get; init; }
void Set(RowHeaderType r, ColumnHeaderType c, ValueType v);
ValueType Get(RowHeaderType r, ColumnHeaderType c);
}
}
|