Of course, that's just a matter of syntax - supporting static indexers
is perfectly feasible technically, it just isn't supported in C#.
(In some cases it would make a lot of sense, eg: Encoding[encodingName]
instead of Encoding.GetEncoding(encodingName).)
I use static class like Invoice in RDL report expressions.
Currently I need to write in all report expressions
Invoice.Get("amount", Fields!InvoiceId.Value)
This makes expressions complicated.
I want to use indexer to simplify this like
Invoice["amount", Fields!InvoiceId.Value]
How to fix this C# bug ?
Andrus.