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