Exemple #1
0
 private static BindOptions <TType, TInterface> MapProperty <TType, TInterface, TResult>
 (
     this BindOptions <TType, TInterface> bindOptions,
     LambdaExpression targetMethodExpression,
     LambdaExpression interfaceMethodExpression
 )
 => bindOptions.MapChain
 (
     targetProperty: targetMethodExpression.FetchMemberInfo <PropertyInfo>(),
     interfaceProperty: interfaceMethodExpression.FetchMemberInfo <PropertyInfo>()
 );
Exemple #2
0
 private static BindOptions <TType, TInterface> MapMethod <TType, TInterface>
 (
     this BindOptions <TType, TInterface> bindOptions,
     LambdaExpression targetMethodExpression,
     LambdaExpression interfaceMethodExpression
 )
 => bindOptions.MapChain
 (
     targetMethod: targetMethodExpression.FetchMethodCall(),
     interfaceMethod: interfaceMethodExpression.FetchMethodCall()
 );