Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ApplyTypeArgs()

static MethodInfo System.Linq.Expressions.Expression< TDelegate >.ApplyTypeArgs ( MethodInfo m,
Type[] typeArgs )
inlinestaticprivateinherited

Definition at line 4336 of file Expression.cs.

4337 {
4338 if (typeArgs == null || typeArgs.Length == 0)
4339 {
4340 if (!m.IsGenericMethodDefinition)
4341 {
4342 return m;
4343 }
4344 }
4345 else if (m.IsGenericMethodDefinition && m.GetGenericArguments().Length == typeArgs.Length)
4346 {
4347 return m.MakeGenericMethod(typeArgs);
4348 }
4349 return null;
4350 }

Referenced by System.Linq.Expressions.Expression< TDelegate >.FindMethod().