I would like to write an extension for DataRow indexer so I can do something like this:
MyCustomClass myClass;
DataRow[myClass] = 5;
I found this related question: C# extend indexer?
However the question was asked 7 years ago and maybe we can extend indexers now?
Also in the C# 8 sneak preview they mentioned "Extension Everything"
For version 8 some features are in prototype status, some are just concepts. The first four features that should make it to version 8 of C# are:
* Nullable Reference Types * Async Streams * Default Interface Methods * Extension Everything
Maybe I should wait for C# 8 to hit?