G
Glenn
Rather than...
if ( myInstance != null )
{
myInstance.Dispose();
}
maybe something like this...
myInstance?Dispose();
where ? = potentially null operator (question mark is the first symbol that
came to mind)
Just wondering if there's anything like this, going to be anything like
this, or am I being ridiculous.
BTW Please don't post comments about using the IDisposable pattern, this is
just an example.
Glenn
if ( myInstance != null )
{
myInstance.Dispose();
}
maybe something like this...
myInstance?Dispose();
where ? = potentially null operator (question mark is the first symbol that
came to mind)
Just wondering if there's anything like this, going to be anything like
this, or am I being ridiculous.
BTW Please don't post comments about using the IDisposable pattern, this is
just an example.
Glenn