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

◆ ArrayLength()

static UnaryExpression System.Linq.Expressions.Expression< TDelegate >.ArrayLength ( Expression< TDelegate > array)
inlinestaticinherited

Definition at line 5326 of file Expression.cs.

5327 {
5329 if (!array.Type.IsSZArray)
5330 {
5331 if (!array.Type.IsArray || !typeof(Array).IsAssignableFrom(array.Type))
5332 {
5333 throw Error.ArgumentMustBeArray("array");
5334 }
5335 throw Error.ArgumentMustBeSingleDimensionalArrayType("array");
5336 }
5337 return new UnaryExpression(ExpressionType.ArrayLength, array, typeof(int), null);
5338 }
static void RequiresCanRead(Expression expression, string paramName)

References System.Linq.Expressions.Error.ArgumentMustBeArray(), System.Linq.Expressions.Error.ArgumentMustBeSingleDimensionalArrayType(), System.array, and System.Dynamic.Utils.ExpressionUtils.RequiresCanRead().

Referenced by System.Runtime.CompilerServices.CallSite< T >.CreateCustomUpdateDelegate().