/// <summary> /// Checks whether or not the given <see cref="MethodInfo" /> is one of the <see cref="M:Queryable.Sum" /> without a selector. /// </summary> /// <param name="methodInfo"> The method to check. </param> /// <returns> <see langword="true" /> if the method matches; <see langword="false" /> otherwise. </returns> public static bool IsSumWithoutSelector(MethodInfo methodInfo) { return(SumWithoutSelectorMethods.ContainsValue(methodInfo)); }
/// <summary> /// Checks whether or not the given <see cref="MethodInfo" /> is one of the <see cref="O:Queryable.Sum" /> without a selector. /// </summary> /// <param name="methodInfo">The method to check.</param> /// <returns><see langword="true" /> if the method matches; <see langword="false" /> otherwise.</returns> public static bool IsSumWithoutSelector(MethodInfo methodInfo) => SumWithoutSelectorMethods.ContainsValue(methodInfo);