private void LazinateMyOfficialObject() { if (LazinatorMemoryStorage.Length == 0) { _MyOfficialObject = null; } else { LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _MyOfficialObject_ByteIndex, _MyOfficialObject_ByteLength, null); _MyOfficialObject = DeserializationFactory.Instance.CreateBaseOrDerivedType(1039, (c, p) => new Concrete5(c, p), childData, this); } _MyOfficialObject_Accessed = true; }
public void ConcreteClassesInheritingFromAbstractWorks() { // serialize the concrete classes inheriting from the abstract ones Concrete5 c = new Concrete5() { String1 = "1", String2 = "2", String3 = "3", String4 = "4", String5 = "5" }; var c2 = c.CloneLazinatorTyped(); c2.String1.Should().Be("1"); c2.String2.Should().Be("2"); c2.String3.Should().Be("3"); c2.String4.Should().Be("4"); c2.String5.Should().Be("5"); }