Current / Context property in class
- by richard-heesbeen
Hi,
I would like to implement an current property in my class which returns the current active context of the class (much like httpcontext.current etc.), like so:
using(classA x = new classA(..))
{
classB.Dosomething();
}
where the method dosomething() gets the current context of classA to perform some operation.
How would i go about creating such functionality?
Greetz,
Richard