internal static HandleRef getCPtrAndSetReference(referenceMapObj obj, object parent) { if (obj != null) { obj.swigParentRef = parent; return obj.swigCPtr; } else { return new HandleRef(null, IntPtr.Zero); } }
public void testreferenceMapObj() { mapObj map = new mapObj(mapfile); referenceMapObj refmap = map.reference; refmap.markername = "This is a sample!"; map = null; gc(); assert(refmap.markername == "This is a sample!", "testreferenceMapObj"); }
internal static HandleRef getCPtr(referenceMapObj obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }