private static int GetMethodKey(FnMethod method) { int arity = method.IsVariadic ? method.RequiredArity + 1 // to avoid the non-variadics, the last of which may have NumParams == this method RequireArity : method.NumParams; return arity; }