I have looked over the MSDN site and I haven't been able to find C# indexer's documentation of a specific class
For instance, I want to find HttpRequest
's public string this[string key]
documentation
Where can i find it?
I have looked over the MSDN site and I haven't been able to find C# indexer's documentation of a specific class
For instance, I want to find HttpRequest
's public string this[string key]
documentation
Where can i find it?
How about this:
http://msdn.microsoft.com/en-us/library/system.web.httprequest.item.aspx
Gets the specified object from the QueryString, Form, Cookies, or ServerVariables collections.
public string this[string key ] { get; }
Looking at the documentation for VB which doesn't have indexers, the property for HttpRequest is Item. If you change the code example to C# it shows the indexer syntax.
Since vb.Net doesn't have indexers, there is usually a specific named property which is mapped to the indexer in C#. For many classes (including HttpRequest), it's Item
http://msdn.microsoft.com/en-us/library/system.web.httprequest.item.aspx