Skip to content

Commit

Permalink
Use function mapper for mapping output parameters, if set (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: oliver.hermann <[email protected]>
  • Loading branch information
oliver-hermann and oliver.hermann authored Jul 6, 2020
1 parent 89ad420 commit d3eb764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NwRfcNet/RfcFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void Invoke<T>(T input)
}

public TResult GetOutputParameters<TResult>() =>
(TResult)new RfcParameterOutput(_rfcConnection.Mapper)
(TResult)new RfcParameterOutput(Mapper ?? _rfcConnection.Mapper)
.GetReturnParameters(FunctionHandle, typeof(TResult));

/// <summary>
Expand Down

0 comments on commit d3eb764

Please sign in to comment.