Base:
property
Type
System.Linq.Expressions.Expression.Type
2 overrides of Type
System.Linq.Expressions (2)
System\Linq\Expressions\ParameterExpression.cs (2)
131public sealed override Type Type { get; } 145public sealed override Type Type => typeof(T);
52 references to Type
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (2)
178Expression.Constant(null, resultParam.Type))); 203Expression.NotEqual(resultParam, Expression.Constant(null, resultParam.Type)),
Microsoft.AspNetCore.Http.Extensions (2)
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (2)
178Expression.Constant(null, resultParam.Type))); 203Expression.NotEqual(resultParam, Expression.Constant(null, resultParam.Type)),
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\TryParseModelBinder.cs (1)
134Expression.Assign(modelValue, Expression.Convert(parsedValue, modelValue.Type)),
System.Linq.Expressions (47)
System\Dynamic\DynamicObject.cs (1)
478variable.Type
System\Linq\Expressions\BlockExpression.cs (1)
1078throw Error.VariableMustNotBeByRef(v, v.Type, collectionName, i);
System\Linq\Expressions\CatchBlock.cs (4)
96return MakeCatchBlock(variable.Type, variable, body, filter: null); 123return MakeCatchBlock(variable.Type, variable, body, filter); 138ContractUtils.Requires(variable == null || TypeUtils.AreEquivalent(variable.Type, type), nameof(variable)); 145throw Error.VariableMustNotBeByRef(variable, variable.Type, nameof(variable));
System\Linq\Expressions\Compiler\CompilerScope.cs (4)
281throw Error.UndefinedVariable(variable.Name, variable.Type, CurrentLambdaName); 324Type boxType = typeof(StrongBox<>).MakeGenericType(v.Type); 331lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(new Type[] { v.Type })!); 337lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(new Type[] { v.Type })!);
System\Linq\Expressions\Compiler\CompilerScope.Storage.cs (6)
52_local = compiler.GetLocal(variable.IsByRef ? variable.Type.MakeByRefType() : variable.Type); 115Type boxType = typeof(StrongBox<>).MakeGenericType(variable.Type); 128LocalBuilder value = Compiler.GetLocal(Variable.Type); 167Type boxType = typeof(StrongBox<>).MakeGenericType(variable.Type); 188LocalBuilder value = Compiler.GetLocal(Variable.Type);
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (3)
85if (TypeUtils.AreEquivalent(type, node.Type)) 100if (node.Type.IsByRef && node.Type.GetElementType() == type)
System\Linq\Expressions\Compiler\LambdaCompiler.Binary.cs (2)
118Debug.Assert(TypeUtils.AreReferenceAssignable(p1.Type, b.Left.Type.GetNonNullableType())); 119Debug.Assert(TypeUtils.AreReferenceAssignable(p2.Type, b.Right.Type.GetNonNullableType()));
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (3)
727LocalBuilder value = GetLocal(variable.Type); 732_ilg.EmitStoreValueIndirect(variable.Type); 769_ilg.EmitLoadValueIndirect(node.Type);
System\Linq\Expressions\Compiler\LambdaCompiler.Lambda.cs (2)
178result[i] = p.IsByRef ? p.Type.MakeByRefType() : p.Type;
System\Linq\Expressions\Compiler\LambdaCompiler.Logical.cs (3)
128Debug.Assert(p.Type.IsAssignableFrom(b.Left.Type) || 129p.Type.IsAssignableFrom(nnLeftType)); 135if (!p.Type.IsAssignableFrom(b.Left.Type))
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
222Debug.Assert(TypeUtils.AreReferenceAssignable(testValue.Type, test.Type));
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
680refTempNew = MakeTemp(tempNew.Type.MakeByRefType()); 750refTempNew = MakeTemp(tempNew.Type.MakeByRefType());
System\Linq\Expressions\Compiler\StackSpiller.Temps.cs (1)
119if (temp.Type == type)
System\Linq\Expressions\Compiler\VariableBinder.cs (1)
256throw Error.UndefinedVariable(node.Name, node.Type, CurrentLambdaName);
System\Linq\Expressions\DebugViewWriter.cs (1)
240Out(variable.Type.ToString());
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
381public Type Type => _node.Type;
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
414EmitCopyValueType(variable.Type); 546_instructions.EmitInitializeLocal(local.Index, variable.Type);
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
630return Expression.Convert(Utils.GetStrongBoxValueField(Expression.Constant(box)), node.Type);
System\Linq\Expressions\LambdaExpression.cs (5)
867typeArgs[i] = param.IsByRef ? param.Type.MakeByRefType() : param.Type; 956throw Error.ParameterExpressionNotValidAsDelegate(pex.Type.MakeByRefType(), pType); 960if (!TypeUtils.AreReferenceAssignable(pex.Type, pType)) 962throw Error.ParameterExpressionNotValidAsDelegate(pex.Type, pType);
System\Runtime\CompilerServices\CallSite.cs (3)
377body.UncheckedAdd(Expression.Assign(@this, Expression.Convert(site, @this.Type))); 475Expression.Constant(null, applicable.Type) 594body.UncheckedAdd(Expression.Assign(rule, Expression.Constant(null, rule.Type)));