public override void Dispose() { lock (this) { if (this.swigCPtr.Handle != IntPtr.Zero) { if (this.swigCMemOwn) { this.swigCMemOwn = false; HandleRef handle = new HandleRef((object)null, this.swigCPtr.Handle); if (this.IsContainOpenGLResource()) { GtkInvokeHelp.BeginInvoke((Action)(() => { this.swigCPtr = handle; CocoStudioEngineAdapterPINVOKE.delete_CSTimelineSkewFrame(this.swigCPtr); })); } else { CocoStudioEngineAdapterPINVOKE.delete_CSTimelineSkewFrame(this.swigCPtr); } } this.swigCPtr = new HandleRef((object)null, IntPtr.Zero); } GC.SuppressFinalize((object)this); base.Dispose(); } }
public virtual void Dispose() { lock (this) { if (this.swigCPtr.Handle != IntPtr.Zero) { if (this.swigCMemOwn) { this.swigCMemOwn = false; HandleRef handle = new HandleRef((object)null, this.swigCPtr.Handle); if (!this.IsContainOpenGLResource()) { throw new MethodAccessException("C++ destructor does not have public access"); } GtkInvokeHelp.BeginInvoke((Action)(() => { this.swigCPtr = handle; throw new MethodAccessException("C++ destructor does not have public access"); })); } this.swigCPtr = new HandleRef((object)null, IntPtr.Zero); } GC.SuppressFinalize((object)this); } }
public virtual void Dispose() { lock (this) { if (this.swigCPtr.Handle != IntPtr.Zero) { if (this.swigCMemOwn) { this.swigCMemOwn = false; HandleRef handle = new HandleRef((object)null, this.swigCPtr.Handle); if (this.IsContainOpenGLResource()) { GtkInvokeHelp.BeginInvoke((Action)(() => { this.swigCPtr = handle; CocoStudioEngineAdapterPINVOKE.delete_V2F_C4B_T2F_Triangle(this.swigCPtr); })); } else { CocoStudioEngineAdapterPINVOKE.delete_V2F_C4B_T2F_Triangle(this.swigCPtr); } } this.swigCPtr = new HandleRef((object)null, IntPtr.Zero); } GC.SuppressFinalize((object)this); } }
public virtual void Dispose() { lock (this) { if (this.swigCPtr.Handle != IntPtr.Zero) { if (this.swigCMemOwn) { this.swigCMemOwn = false; HandleRef handle = new HandleRef(null, this.swigCPtr.Handle); if (this.IsContainOpenGLResource()) { GtkInvokeHelp.BeginInvoke(delegate { this.swigCPtr = handle; CocoStudioEngineAdapterPINVOKE.delete_CSVectorRect(this.swigCPtr); }); } else { CocoStudioEngineAdapterPINVOKE.delete_CSVectorRect(this.swigCPtr); } } this.swigCPtr = new HandleRef(null, IntPtr.Zero); } System.GC.SuppressFinalize(this); } }