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