internal static HandleRef getCPtrAndSetReference(legendObj obj, object parent) {
   if (obj != null)
   {
     obj.swigParentRef = parent;
     return obj.swigCPtr;
   }
   else
   {
     return new HandleRef(null, IntPtr.Zero);
   }
 }
示例#2
0
    public void testlegendObj()
    {
        mapObj    map    = new mapObj(mapfile);
        legendObj legend = map.legend;

        legend.template = "This is a sample!";

        map = null;
        gc();
        assert(legend.template == "This is a sample!", "testlegendObj");
    }
 internal static HandleRef getCPtrAndDisown(legendObj obj, object parent) {
   if (obj != null)
   {
     obj.swigCMemOwn = false;
     obj.swigParentRef = parent;
     return obj.swigCPtr;
   }
   else
   {
     return new HandleRef(null, IntPtr.Zero);
   }
 }
 internal static HandleRef getCPtr(legendObj obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }