I use ToolStripMenuItem
inside some of my projects and allocate it using C# operator new
:
ToolStripMenuItem someMenuItem = new ToolStripMenuItem("Some Item");
I read MSDN documentation on IDisposable
interface and using
statement (http://msdn.microsoft.com/en-us/library/yh598w02.aspx). It is still unclear for me if ToolStripMenuItem have any underlying unmanaged resource or not.
More precisely, should I take care of call to Dispose(false)
method if some exception occurs?