Beispiel #1
0
        protected override ILazinator AssignCloneProperties(ILazinator clone, IncludeChildrenMode includeChildrenMode)
        {
            base.AssignCloneProperties(clone, includeChildrenMode);
            ConcreteFromGenericFromBase typedClone = (ConcreteFromGenericFromBase)clone;

            return(typedClone);
        }
Beispiel #2
0
        public override ILazinator CloneLazinator(IncludeChildrenMode includeChildrenMode = IncludeChildrenMode.IncludeAllChildren, CloneBufferOptions cloneBufferOptions = CloneBufferOptions.IndependentBuffers)
        {
            ConcreteFromGenericFromBase clone;

            if (cloneBufferOptions == CloneBufferOptions.NoBuffer)
            {
                clone = new ConcreteFromGenericFromBase(includeChildrenMode);
                clone.LazinatorObjectVersion = LazinatorObjectVersion;
                clone = (ConcreteFromGenericFromBase)AssignCloneProperties(clone, includeChildrenMode);
            }
            else
            {
                LazinatorMemory bytes = EncodeOrRecycleToNewBuffer(includeChildrenMode, OriginalIncludeChildrenMode, IsDirty, DescendantIsDirty, false, LazinatorMemoryStorage, this);
                clone = new ConcreteFromGenericFromBase(bytes);
            }
            return(clone);
        }