Values という名前のパブリック ディクショナリを含むクラス Locale があります。
私が欲しいのは:
Locale l = new Locale(.....);
// execute stuff that loads the Values dictionary...
// currently to get the values in it I have to write :
string value = l.Values["TheKey"];
// What I want is to be able to get the same thing using :
string value = l["TheKey"];
カスタムクラスで角括弧を使用する場合、基本的に戻り値を変更したいと思います。