Base:
property
Type
System.Linq.Expressions.Expression.Type
1 write to Type
System.Linq.Expressions (1)
System\Linq\Expressions\UnaryExpression.cs (1)
23Type = type;
39 references to Type
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
102&& unaryExpression.Type == typeof(object))
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ModelStateDictionaryExtensions.cs (1)
168expression.Type == typeof(object);
System.Linq.Expressions (37)
System\Linq\Expressions\Compiler\LambdaCompiler.Logical.cs (1)
573if (TypeUtils.AreReferenceAssignable(convert.Type, convert.Operand.Type))
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (13)
23EmitConstant(quote.Operand, quote.Type); 34Debug.Assert(typeof(LambdaExpression).IsAssignableFrom(quote.Type)); 35_ilg.Emit(OpCodes.Castclass, quote.Type); 74Type type = node.Type; 116EmitUnaryOperator(node.NodeType, node.Operand.Type, node.Type); 274Debug.Assert(node.Type.IsValueType); 278_ilg.Emit(OpCodes.Unbox_Any, node.Type); 306if (node.IsLifted && (!node.Type.IsValueType || !node.Operand.Type.IsValueType)) 319node = Expression.Convert(Expression.Call(node.Method, operand), node.Type); 330if (node.Type == typeof(void)) 336if (TypeUtils.AreEquivalent(node.Operand.Type, node.Type)) 344_ilg.EmitConvertToType(node.Operand.Type, node.Type, node.NodeType == ExpressionType.ConvertChecked, this); 359_ilg.EmitConvertToType(resultType, node.Type, isChecked: false, locals: this);
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\DebugViewWriter.cs (4)
882Out("(" + node.Type.ToString() + ")"); 885Out("#(" + node.Type.ToString() + ")"); 890Out(node.Type == typeof(bool) ? "!" : "~"); 948Out(node.Type.ToString());
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
490public Type Type => _node.Type;
System\Linq\Expressions\ExpressionStringBuilder.cs (2)
642Out(node.Type.Name); 647Out(node.Type.Name);
System\Linq\Expressions\Interpreter\LightCompiler.cs (9)
1102else if (node.Type == typeof(void)) 1109CompileConvertToType(node.Operand.Type, node.Type, node.NodeType == ExpressionType.ConvertChecked, node.IsLiftedToNull); 1250_instructions.EmitNegateChecked(node.Type); 1254_instructions.EmitNegate(node.Type); 1258_instructions.EmitIncrement(node.Type); 1262_instructions.EmitDecrement(node.Type); 2892if (node.Type.IsValueType && !node.Type.IsNullableType()) 2918_instructions.EmitTypeAs(node.Type);
System\Linq\Expressions\UnaryExpression.cs (5)
63bool resultIsNullable = this.Type.IsNullableType(); 67(resultIsNullable && !TypeUtils.AreEquivalent(Method.ReturnType, this.Type)); 77public bool IsLiftedToNull => IsLifted && this.Type.IsNullableType(); 288return Expression.MakeUnary(NodeType, operand, Type, Method); 1073if (!TypeUtils.AreReferenceAssignable(expression.Type, result.Type))