Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRxPropDesc.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.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdRxPropDesc : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdRxPropDesc(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdRxPropDesc_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdRxPropDesc obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public virtual String name() {
43 string ret = GlobalsPINVOKE.OdRxPropDesc_name(swigCPtr);
45 return ret;
46}
47
48 public virtual OdRxObject prop_get(IntPtr /*SIMPLETYPE*/ pThis) {// OdRxObjectPtr
49 MemoryManager mMan = MemoryManager.GetMemoryManager();
50 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
51 IntPtr ptr = GlobalsPINVOKE.OdRxPropDesc_prop_get(swigCPtr, pThis /*SIMPLETYPE*/);
52
53 OdRxObject ret = null;
54 if (null != mTrans)
55 {
56 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
57 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
58 }
59 else
60 {
61 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
62 }
63
65 return ret;
66}
67
68 public virtual void prop_put(IntPtr /*SIMPLETYPE*/ pThis, OdRxObject pVal) {
69 GlobalsPINVOKE.OdRxPropDesc_prop_put(swigCPtr, pThis /*SIMPLETYPE*/, OdRxObject.getCPtr(pVal));
71 }
72
73 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
74 string ret = GlobalsPINVOKE.OdRxPropDesc_getRealClassName(ptr /*SIMPLETYPE*/);
76 return ret;
77 }
78
83 public virtual string vb_name() { return this.name(); }
84
85}
86
87}
static global::System.Exception Retrieve()
static void OdRxPropDesc_prop_put(HandleRef jarg1, IntPtr jarg2, HandleRef jarg3)
static string OdRxPropDesc_getRealClassName(IntPtr jarg1)
static IntPtr OdRxPropDesc_prop_get(HandleRef jarg1, IntPtr jarg2)
static String OdRxPropDesc_name(HandleRef jarg1)
static void delete_OdRxPropDesc(HandleRef jarg1)
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdRxPropDesc obj)
Definition: OdRxPropDesc.cs:25
static string getRealClassName(IntPtr ptr)
Definition: OdRxPropDesc.cs:73
virtual string vb_name()
Definition: OdRxPropDesc.cs:83
virtual String name()
Definition: OdRxPropDesc.cs:42
override void Dispose(bool disposing)
Definition: OdRxPropDesc.cs:29
OdRxPropDesc(IntPtr cPtr, bool cMemoryOwn)
Definition: OdRxPropDesc.cs:20
virtual void prop_put(IntPtr pThis, OdRxObject pVal)
Definition: OdRxPropDesc.cs:68
virtual OdRxObject prop_get(IntPtr pThis)
Definition: OdRxPropDesc.cs:48