ElementAt_TSource_2() public static method

public static ElementAt_TSource_2 ( Type TSource ) : MethodInfo
TSource Type
return System.Reflection.MethodInfo
コード例 #1
0
 public static TSource ElementAt <TSource>(this IQueryable <TSource> source, Index index)
 {
     if (source == null)
     {
         // throw Error.ArgumentNull(nameof(source));
         throw new ArgumentNullException(nameof(source));
     }
     return(source.Provider.Execute <TSource>(
                Expression.Call(
                    null,
                    CachedReflectionInfo.ElementAt_TSource_2(typeof(TSource)),
                    source.Expression, Expression.Constant(index)
                    )));
 }