public void ReadBytes(byte[] data) { GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned); _sector = (_XASectorForm2)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_XASectorForm2)); handle.Free(); }
public XASectorForm2() { _sector = new _XASectorForm2(); }