/// <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));
 }
예제 #2
0
 /// <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);