Ejemplo n.º 1
0
        public void Free()
        {
            Point?.Free();
            Point = new Point2F(internalStruct.point);

            Extent?.Free();
            Extent = new Point2F(internalStruct.extent);

            if (internalStructPtr != IntPtr.Zero)
            {
                StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr);
            }
            internalStructPtr = IntPtr.Zero;
        }
Ejemplo n.º 2
0
 public RectF(string s)
 {
     string[] strings = s.Split(' ');
     Point  = GenericMarshal.StringTo <Point2F>(strings[0]);
     Extent = GenericMarshal.StringTo <Point2F>(strings[1]);
 }