A default property is a property which is invoked when you use an indexer
without specifying the name of the property that takes an indexer. For
example, most Collections have a default property which allows you to
specify an item in the Collection via the following terminology:
SomeCollection[0] (C#)
SomeCollection(0) (VB.Net)
I am not familiar with how this is declared in VB.Net, but to do so in C#,
you would create a default property something like the following:
public class foo
{
private StringCollection _Strings = new StringCollection();
public int this[int index]
{
get { return _Strings[index]; }
set { _String[index] = value; }
}
}
As you can see, the default property doesn't have to refer to the object
itself, but can be defined in any number of ways.
I would suspect that in your case, you possibly referenced:
....HttpContext
or possibly
....HttpContext["foo"]
or possibly within a Page or other class having a System.Web.HttpContext
member:
Context
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.