/// <inheritdoc /> public override void WriteMember(TContainingType obj, IWireStreamWriterStrategy dest) { WriteCollectionSizeToField(obj); //TODO: Should we spend CPU cycles to reset the original value? This kind of changes the state of the DTO DecoratedMediator.WriteMember(obj, dest); }
/// <inheritdoc /> public void WriteMember(TContainingType obj, IWireStreamWriterStrategy dest) { //Check if we should read if (!(bool)isReadWriteEnabledGetter.Getter(obj)) { return; } DecoratedMediator.WriteMember(obj, dest); }
/// <inheritdoc /> public override void WriteMember(TContainingType obj, IWireStreamWriterStrategy dest) { //TODO: Should we spend CPU cycles to reset the original value? This kind of changes the state of the DTO DecoratedMediator.WriteMember(obj, new SkipSomeBytesWireStreamWriterStrategyDecorator(dest, SizeOfCollectionSizeType)); }