This gets regular airings...
The main point is: why? it offers no significant benefit: with exactly the
same effort you could just do:
SomeClass instance = <object>; // your term... presumably accessed via a
property or function etc
instance.something();
And if you want to strictly scope the variable:
{
SomeClass instance = <object>; // your term... presumably accessed via a
property or function etc
instance.something();
}
It would honestly add very little...
This is very different to "using", "lock", etc, as these do offer a
significant benefit - both in terms of saved keystrokes and consistent
object access / disposal.
Marc