[HandleProcessCorruptedStateExceptionsAttribute()]
protected virtual void Dispose(
bool disposing
)
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Because the D2DDrawingState class implements the System.IDisposable interface, it is best to follow the standard .NET dispose pattern when using the D2DDrawingState class. For more information, refer to the System.IDisposable interface documentation in MSDN.