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

◆ ValidateTryGetFuncActionArgs()

static TryGetFuncActionArgsResult System.Linq.Expressions.Expression< TDelegate >.ValidateTryGetFuncActionArgs ( Type[] typeArgs)
inlinestaticprivateinherited

Definition at line 3442 of file Expression.cs.

3443 {
3444 if (typeArgs == null)
3445 {
3446 return TryGetFuncActionArgsResult.ArgumentNull;
3447 }
3448 foreach (Type type in typeArgs)
3449 {
3450 if (type == null)
3451 {
3452 return TryGetFuncActionArgsResult.ArgumentNull;
3453 }
3454 if (type.IsByRef)
3455 {
3456 return TryGetFuncActionArgsResult.ByRef;
3457 }
3458 if (type == typeof(void) || type.IsPointer)
3459 {
3460 return TryGetFuncActionArgsResult.PointerOrVoid;
3461 }
3462 }
3463 return TryGetFuncActionArgsResult.Valid;
3464 }

References System.type.

Referenced by System.Linq.Expressions.Expression< TDelegate >.GetActionType(), System.Linq.Expressions.Expression< TDelegate >.GetFuncType(), System.Linq.Expressions.Expression< TDelegate >.TryGetActionType(), and System.Linq.Expressions.Expression< TDelegate >.TryGetFuncType().