csharp override index operator

Code Example - csharp override index operator

                
                        public int this[int key]
{
    get => GetValue(key);
    set => SetValue(key, value);
}