internal Size2D(Size2DChangedCallback cb, int x, int y) : this(Interop.Vector2.NewVector2((float)x, (float)y), true) { callback = cb; if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
protected override void Dispose(bool disposing) { if (disposed) { return; } callback = null; //perform dipose here without being added to DisposeQueue. if (SwigCMemOwn && SwigCPtr.Handle != IntPtr.Zero) { if (disposing) { base.Dispose(DisposeTypes.Explicit); } else { base.Dispose(DisposeTypes.Implicit); } } base.Dispose(disposing); }