示例#1
0
        private void _TestSerialization
        (
            [NotNull] MarcRecord first
        )
        {
            byte[] bytes = first.SaveToMemory();

            MarcRecord second = bytes.RestoreObjectFromMemory <MarcRecord>();

            Assert.AreEqual(0, MarcRecord.Compare(first, second));
            Assert.IsNull(second.UserData);
        }