コード例 #1
0
 ResolveResult CreateResolveResultForUserDefinedOperator(OverloadResolution r, System.Linq.Expressions.ExpressionType operatorType)
 {
     if (r.BestCandidateErrors != OverloadResolutionErrors.None)
         return r.CreateResolveResult(null);
     IMethod method = (IMethod)r.BestCandidate;
     return new OperatorResolveResult(method.ReturnType, operatorType, method,
                                      isLiftedOperator: method is OverloadResolution.ILiftedOperator,
                                      operands: r.GetArgumentsWithConversions());
 }