14using System.Runtime.InteropServices;
17 private Object locker =
new Object();
18 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
36 global::System.GC.SuppressFinalize(
this);
39 protected virtual void Dispose(
bool disposing) {
40 if (swigCPtr.Handle != IntPtr.Zero)
46 if ((swigCPtr.Handle != IntPtr.Zero) && (
swigCMemOwn))
49 throw new MethodAccessException(
"C++ destructor does not have public access");
54 swigCPtr =
new HandleRef(
null, IntPtr.Zero);
56 GC.SuppressFinalize(
this);
OdNonCopyable(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdNonCopyable obj)
virtual void Dispose(bool disposing)