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

◆ IsCompatible() [1/2]

static bool System.Linq.Expressions.Expression< TDelegate >.IsCompatible ( MethodBase m,
Expression< TDelegate >[] arguments )
inlinestaticprivateinherited

Definition at line 4310 of file Expression.cs.

4311 {
4312 ParameterInfo[] parametersCached = m.GetParametersCached();
4313 if (parametersCached.Length != arguments.Length)
4314 {
4315 return false;
4316 }
4317 for (int i = 0; i < arguments.Length; i++)
4318 {
4321 Type type = expression.Type;
4322 Type type2 = parametersCached[i].ParameterType;
4323 if (type2.IsByRef)
4324 {
4325 type2 = type2.GetElementType();
4326 }
4328 {
4329 return false;
4330 }
4331 }
4332 return true;
4333 }
static void RequiresNotNull(object value, string paramName)
static bool IsSameOrSubclass(Type type, Type subType)
Definition TypeUtils.cs:686
static bool AreReferenceAssignable(Type dest, Type src)
Definition TypeUtils.cs:673

References System.Dynamic.Utils.TypeUtils.AreReferenceAssignable(), System.Dynamic.Utils.TypeUtils.IsSameOrSubclass(), System.Dynamic.Utils.ContractUtils.RequiresNotNull(), and System.type.