28 references to UnaryExpression
System.Linq.Expressions (28)
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
595expr = new UnaryExpression(ExpressionType.Throw, value.Node, node.Type, null); 618expr = new UnaryExpression(node.NodeType, expression.Node, node.Type, node.Method);
System\Linq\Expressions\UnaryExpression.cs (26)
148return new UnaryExpression(functional, operand, operand.Type, Method); 365return new UnaryExpression(unaryType, operand, method.ReturnType, method); 374return new UnaryExpression(unaryType, operand, method.ReturnType.LiftPrimitiveOrThrow(), method); 390return new UnaryExpression(unaryType, operand, method.ReturnType, method); 397return new UnaryExpression(unaryType, operand, method.ReturnType.LiftPrimitiveOrThrow(), method); 418return new UnaryExpression(coercionType, expression, convertToType, method); 437return new UnaryExpression(unaryType, operand, method.ReturnType, method); 445return new UnaryExpression(unaryType, operand, convertToType, method); 478return new UnaryExpression(ExpressionType.Negate, expression, expression.Type, null); 513return new UnaryExpression(ExpressionType.UnaryPlus, expression, expression.Type, null); 547return new UnaryExpression(ExpressionType.NegateChecked, expression, expression.Type, null); 582return new UnaryExpression(ExpressionType.Not, expression, expression.Type, null); 617return new UnaryExpression(ExpressionType.IsFalse, expression, expression.Type, null); 647return new UnaryExpression(ExpressionType.IsTrue, expression, expression.Type, null); 677return new UnaryExpression(ExpressionType.OnesComplement, expression, expression.Type, null); 700return new UnaryExpression(ExpressionType.TypeAs, expression, type, null); 719return new UnaryExpression(ExpressionType.Unbox, expression, type, null); 755return new UnaryExpression(ExpressionType.Convert, expression, type, null); 794return new UnaryExpression(ExpressionType.ConvertChecked, expression, type, null); 798return new UnaryExpression(ExpressionType.Convert, expression, type, null); 825return new UnaryExpression(ExpressionType.ArrayLength, array, typeof(int), null); 842return new UnaryExpression(ExpressionType.Quote, lambda, lambda.PublicType, null); 889return new UnaryExpression(ExpressionType.Throw, value!, type, null); 915return new UnaryExpression(ExpressionType.Increment, expression, expression.Type, null); 945return new UnaryExpression(ExpressionType.Decrement, expression, expression.Type, null); 1054return new UnaryExpression(kind, expression, expression.Type, null);