public override void CopyOut(System.IntPtr from, System.IntPtr to)
        {
            __l_WGS84 nativeImg     = (__l_WGS84)Marshal.PtrToStructure(from, typeof(__l_WGS84));
            GCHandle  tmpGCHandleTo = GCHandle.FromIntPtr(to);

            DM.l_WGS84 toObj = tmpGCHandleTo.Target as DM.l_WGS84;
            CopyOut(ref nativeImg, ref toObj);
            tmpGCHandleTo.Target = toObj;
        }
 public static void CopyOut(ref __l_WGS84 from, ref DM.l_WGS84 to)
 {
     if (to == null)
     {
         to = new DM.l_WGS84();
     }
     to.Altitude  = from.Altitude;
     to.Latitude  = from.Latitude;
     to.Longitude = from.Longitude;
 }
 public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.l_WGS84 from, ref __l_WGS84 to)
 {
     if (from == null)
     {
         return(V_COPYIN_RESULT.INVALID);
     }
     to.Altitude  = from.Altitude;
     to.Latitude  = from.Latitude;
     to.Longitude = from.Longitude;
     return(V_COPYIN_RESULT.OK);
 }
        public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.l_WGS84 from, System.IntPtr to)
        {
            __l_WGS84       nativeImg = new __l_WGS84();
            V_COPYIN_RESULT result    = CopyIn(typePtr, from, ref nativeImg);

            if (result == V_COPYIN_RESULT.OK)
            {
                Marshal.StructureToPtr(nativeImg, to, false);
            }
            return(result);
        }
        public static void StaticCopyOut(System.IntPtr from, ref DM.l_WGS84 to)
        {
            __l_WGS84 nativeImg = (__l_WGS84)Marshal.PtrToStructure(from, typeof(__l_WGS84));

            CopyOut(ref nativeImg, ref to);
        }