Exemplo n.º 1
0
 private bool CanBind(WampMethodInfo wampMethodInfo, TMessage[] arguments)
 {
     return(wampMethodInfo.Method.GetParameters()
            .Where(x => !x.IsDefined(typeof(WampProxyParameterAttribute), true))
            .Zip(arguments, (parameterInfo, argument) => new { parameterInfo, argument })
            .All(x => mFormatter.CanConvert(x.argument, x.parameterInfo.ParameterType)));
 }