What are the square brackets in ASP.NET means (C#) ex. Session[""];? -
i beginner in asp.net , experienced c# programmer can't understand role of square brackets in asp.net.
for example, ran things: session["masterpage"], viewstate["masterpage"], application["users"] etc. array or indxers? sorry, can't understand it.
thanks helpers :)
session , application both storage objects indexer property. seeing use of property.
string myname = (string) session["name"]; can thought of use of hypothetical function:
string myname = (string) session.getvalueforkey("name"); the property offers more compact , familiar (array-like) notation.
Comments
Post a Comment