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