H
Hillbilly
MSDN Remarks [1] "as a rule" the using statement should be used when
instantiating objects which inherit IDisposable. Other than the obvious
unmanaged objects like the file system example, fonts and the database how
else may it be determined which classes and their objects inherit
IDisposable?
And the remarks imply the using statement is a different and perhaps more
efficient way to use objects than try-catch-finally?
[1] http://msdn.microsoft.com/en-us/library/yh598w02.aspx
instantiating objects which inherit IDisposable. Other than the obvious
unmanaged objects like the file system example, fonts and the database how
else may it be determined which classes and their objects inherit
IDisposable?
And the remarks imply the using statement is a different and perhaps more
efficient way to use objects than try-catch-finally?
[1] http://msdn.microsoft.com/en-us/library/yh598w02.aspx