#pragma warning disable CA1063 // Implement IDisposable Correctly
        public void Dispose()
#pragma warning restore CA1063 // Implement IDisposable Correctly
        {
            history.EndForwardToUndoOperation(primitive);
            primitive.State = DelegatedUndoPrimitiveState.Inactive;
            GC.SuppressFinalize(this);
        }
 public void Dispose()
 {
     history.EndForwardToUndoOperation(primitive);
     primitive.State = DelegatedUndoPrimitiveState.Inactive;
     GC.SuppressFinalize(this);
 }