How do I overload the [] operator in C# [duplicate] September 27, 2022 by Tarik public int this[int key] { get => GetValue(key); set => SetValue(key, value); }