Can anyone explain WHY C# does not support static indexers
eg.
They would be very useful.
eg.
PHP Code:
public static string this[string key]
{
get
{
NameValueCollection config = (NameValueCollection)ConfigurationSettings.GetConfig("mysection/mysettings");
return config[key];
}
}
Comment