c# overloading index operator code example
Example: c# override index operator
public int this[int key]
{
get => GetValue(key);
set => SetValue(key, value);
}
public int this[int key]
{
get => GetValue(key);
set => SetValue(key, value);
}