public int this[int key]
{
get => GetValue(key);
set => SetValue(key, value);
}
More Related Contents:
- what are the methods “public override bool equals(object obj)” and “public override int gethashcode()” doing? [closed]
- Arithmetic operator overloading for a generic class in C#
- What is “Best Practice” For Comparing Two Instances of a Reference Type?
- How do I overload the square-bracket operator in C#?
- Solution for overloaded operator constraint in .NET generics
- How do I check for nulls in an ‘==’ operator overload without infinite recursion?
- Operator Overloading with C# Extension Methods
- Overloading assignment operator in C#
- Static Indexers?
- Class with indexer and property named “Item”
- C# Generic Operators
- “Strange” C# property syntax
- explicit conversion operator error when converting generic lists
- C# operator overload for `+=`?
- Operator overloading ==, !=, Equals
- How to call custom operator with Reflection
- Why must C# operator overloads be static?
- Overloading operator== versus Equals()
- PropertyChanged for indexer property
- Why are there no lifted short-circuiting operators on `bool?`?
- Overloading the + operator to add two arrays
- In the msdn guidance on Equals override, why the cast to object in the null check?
- In MVVM should the ViewModel or Model implement INotifyPropertyChanged?
- Quality of a saved JPG in C#
- How to stop an animation in C# / WPF?
- Questions about Entity Framework Context Lifetime
- Random date in C#
- How to to return an image with Web API Get method
- C# error: Use of unassigned local variable
- How to List Directory Contents with FTP in C#?