Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgGripData.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDgGripData : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDgGripData(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDgGripData obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 if (swigCPtr.Handle != IntPtr.Zero)
42 {
43 if (swigCMemOwn)
44 {
45 lock (locker)//(this)
46 {
47 if ((swigCPtr.Handle != IntPtr.Zero) && (swigCMemOwn))
48 {
49 swigCMemOwn = false;
51 }
52 }
53 swigCMemOwn = false;
54 }
55 swigCPtr = new HandleRef(null, IntPtr.Zero);
56 }
57 GC.SuppressFinalize(this);
58 //base.Dispose();
59 }
60
61 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
62 string ret = TG_DbPINVOKE.OdDgGripData_getRealClassName(ptr /*SIMPLETYPE*/);
64 return ret;
65 }
66
67}
68
69}
OdDgGripData(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDgGripData.cs:22
static HandleRef getCPtr(OdDgGripData obj)
Definition: OdDgGripData.cs:27
virtual void Dispose(bool disposing)
Definition: OdDgGripData.cs:40
static string getRealClassName(IntPtr ptr)
Definition: OdDgGripData.cs:61
static global::System.Exception Retrieve()
static void delete_OdDbGripData(HandleRef jarg1)
static string OdDgGripData_getRealClassName(IntPtr jarg1)