/// <inheritdoc />
        public override void SetMember(TContainingType obj, IWireStreamReaderStrategy source)
        {
            //We need to reconvert the size back to bytes to reinsert into the stream
            //so that the collection can recieve it and then be able to deserialize the elements.
            byte[] bytes = ((TSizeType)SizeMemberGetter.Getter(obj)).Reinterpret();

            //We don't need to modify how we set the size member
            DecoratedMediator.SetMember(obj, source.PreprendWithBytes(bytes));
        }
Пример #2
0
        /// <inheritdoc />
        public void SetMember(TContainingType obj, IWireStreamReaderStrategy source)
        {
            //Check if we should read
            if (!(bool)isReadWriteEnabledGetter.Getter(obj))
            {
                return;
            }

            DecoratedMediator.SetMember(obj, source);
        }
 /// <inheritdoc />
 public override void SetMember(TContainingType obj, IWireStreamReaderStrategy source)
 {
     //We don't need to modify how we set the size member
     DecoratedMediator.SetMember(obj, source);
 }