/// <inheritdoc /> public override Task SetMemberAsync(TContainingType obj, IWireStreamReaderStrategyAsync 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 return(DecoratedMediator.SetMemberAsync(obj, source.PreprendWithBytesAsync(bytes))); }
/// <inheritdoc /> public async Task SetMemberAsync(object obj, IWireStreamReaderStrategyAsync source) { //Check if we should read if (!(bool)isReadWriteEnabledGetter.Getter((TContainingType)obj)) { return; } await DecoratedMediator.SetMemberAsync(obj, source) .ConfigureAwait(false); }
/// <inheritdoc /> public override Task SetMemberAsync(TContainingType obj, IWireStreamReaderStrategyAsync source) { //We don't need to modify how we set the size member return(DecoratedMediator.SetMemberAsync(obj, source)); }