System.Linq.Dynamic.ExpressionParser.IsBetterThan C# (CSharp) Method

IsBetterThan() private static method

private static IsBetterThan ( Expression args, MethodData m1, MethodData m2 ) : bool
args Expression
m1 MethodData
m2 MethodData
return bool
		private static bool IsBetterThan(Expression[] args, MethodData m1, MethodData m2)
		{
			bool better = false;
			for (int i = 0; i < args.Length; i++)
			{
				int c = CompareConversions(args[i].Type,
					m1._parameters[i].ParameterType,
					m2._parameters[i].ParameterType);
				if (c < 0) return false;
				if (c > 0) better = true;
			}
			return better;
		}
ExpressionParser