Получение значения массива через ссылочный индекс - C#
Формулировка задачи:
Dictionary<string, string> sT = new Dictionary<string, string>()
{
{"test","test"},
{"test2","test"},
};
public string ST[string index]
{
get { return sT[index]; }
set { sT[index] = value; }
};Решение задачи: «Получение значения массива через ссылочный индекс»
textual
Листинг программы
public string a[string index]
{
get { return sT[index]; }
set { sT[index] = value; }
}
public string b[string index]
{
get { return TT[index]; }
set { TT[index] = value; }
}