Exemplo n.º 1
0
        public void StructContainingStructWorks()
        {
            ExampleStructContainingStruct c = new ExampleStructContainingStruct()
            {
                MyExampleStructContainingClasses = new ExampleStructContainingClasses()
                {
                    MyChar = 'z', MyLazinatorList = new List <Example>()
                }
            };

            var c2 = CloneWithOptionalVerification(c, true, false);

            c2.MyExampleStructContainingClasses.MyChar.Should().Be('z');
        }
Exemplo n.º 2
0
 private void LazinateSubcontainer()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _Subcontainer = default(ExampleStructContainingStruct);
         _Subcontainer.LazinatorParents = new LazinatorParentsCollection(this);
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _Subcontainer_ByteIndex, _Subcontainer_ByteLength, null); _Subcontainer = new ExampleStructContainingStruct(childData)
         {
             LazinatorParents = new LazinatorParentsCollection(this)
         };
     }
     _Subcontainer_Accessed = true;
 }