Definition at line 292 of file EnumerableRewriter.cs.
293 {
296 {
297 return false;
298 }
300 {
301 return false;
302 }
303 if (!
m.IsGenericMethodDefinition &&
m.IsGenericMethod &&
m.ContainsGenericParameters)
304 {
305 m =
m.GetGenericMethodDefinition();
306 }
307 if (
m.IsGenericMethodDefinition)
308 {
310 {
311 return false;
312 }
313 if (
m.GetGenericArguments().Length !=
typeArgs.Length)
314 {
315 return false;
316 }
318 }
321 {
324 {
325 return false;
326 }
328 {
330 }
333 {
335 {
337 }
339 {
340 return false;
341 }
342 }
343 }
344 return true;
345 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2060:MakeGenericMethod", Justification =
"MakeGenericMethod is only called to get the parameter types, which are only used to make a 'match' decision. The generic method is not invoked.")]
347 {
349 }
350 }
static Type StripExpression(Type type)
References System.array, System.Linq.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Type.GetElementType(), System.Linq.EnumerableRewriter.StripExpression(), and System.type.
Referenced by System.Linq.EnumerableRewriter.FindEnumerableMethodForQueryable(), System.Linq.EnumerableRewriter.FindMethod(), and System.Linq.EnumerableRewriter.VisitMethodCall().