A
Andreas =?ISO-8859-1?Q?M=FCller?=
Hi all,
I have a class SwitchCursor, that implements IDisposable. Is it legal
to use an object that is not assigned to a reference inside a using
statement like this:
using(new SwitchCursor())// is the SwitchCursor safe from GC?
{
}
or is the Object eligible for GC?
Thanks in advance,
Andy
I have a class SwitchCursor, that implements IDisposable. Is it legal
to use an object that is not assigned to a reference inside a using
statement like this:
using(new SwitchCursor())// is the SwitchCursor safe from GC?
{
}
or is the Object eligible for GC?
Thanks in advance,
Andy