public CAiguillage(sw s) { _ID = s.ID; //_cmd = s.cmd; _cmd = s.state; _blockid = s.blockid; }
public void T16_Struct4() { using (var ms = new MemoryStream()) { var s = new SlimSerializer(); var s1 = new sw { s = new MyStructWithReadonlyField(10, 15, true) }; s.Serialize(ms, s1); ms.Seek(0, SeekOrigin.Begin); var s2 = (sw)s.Deserialize(ms); Console.WriteLine(NFX.Serialization.JSON.JSONWriter.Write(s1.s)); Console.WriteLine(NFX.Serialization.JSON.JSONWriter.Write(s2.s)); Assert.AreEqual(s1.s.X, s2.s.X); Assert.AreEqual(s1.s.Y, s2.s.Y); Assert.AreEqual(s1.s.F, s2.s.F); } }
set => SystemWindow.SendMessage(new HandleRef(sw, sw.HWnd), SystemListView.LVM_SETITEMPOSITION,