Please see my example code:
var testObject = new SomeClass();
using (testObject)
{
//At this point how can the testObject implicitly know
//if it is placed inside a 'using' scope?
// In other words, how can testObject know that
// .SomeAction() is being called from within a 'using' scope?
testObject.someAction();
}