Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
        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);
        }