Base:
property
Type
System.Linq.Expressions.Expression.Type
2 overrides of Type
System.Core (2)
Microsoft\Scripting\Ast\ParameterExpression.cs (2)
155public sealed override Type Type { 169public sealed override Type Type {
72 references to Type
System.Activities (10)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
478EnsureTypeReferenced(paramExpr.Type, false, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
853variableExpression.Type, 1295if (parameterExpression.Type == typeof(ActivityContext) && parameterExpression.Name == "context")
System\Activities\Expressions\MethodCallExpressionHelper.cs (6)
32if (variable.Type.IsValueType && Nullable.GetUnderlyingType(variable.Type) == null) 36Expression.Call(typeof(Convert).GetMethod("ChangeType", new Type[] { typeof(object), typeof(Type) }), Expression.ArrayIndex(objectArray, Expression.Constant(i)), Expression.Constant(variable.Type, typeof(Type))), 37variable.Type))); 42Expression.Convert(Expression.ArrayIndex(objectArray, Expression.Constant(i)), variable.Type))); 46if (variable.Type.IsValueType)
System\Activities\ExpressionUtilities.cs (1)
243delegateParameterTypes[i] = lambdaParameters[i].Type;
System.Core (41)
Microsoft\Scripting\Actions\CallSite.cs (3)
371body.Add(Expression.Assign(@this, Expression.Convert(site, @this.Type))); 490Expression.Constant(null, applicable.Type) 637body.Add(Expression.Assign(rule, Expression.Constant(null, rule.Type)));
Microsoft\Scripting\Ast\BlockExpression.cs (1)
810throw Error.VariableMustNotBeByRef(v, v.Type);
Microsoft\Scripting\Ast\CatchBlock.cs (4)
126return MakeCatchBlock(variable.Type, variable, body, null); 151return MakeCatchBlock(variable.Type, variable, body, filter); 165ContractUtils.Requires(variable == null || TypeUtils.AreEquivalent(variable.Type, type), "variable"); 167throw Error.VariableMustNotBeByRef(variable, variable.Type);
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
276Out(variable.Type.ToString());
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
358public Type Type { get { return _node.Type; } }
Microsoft\Scripting\Ast\LambdaExpression.cs (5)
475typeArgs[i] = param.IsByRef ? param.Type.MakeByRefType() : param.Type; 552throw Error.ParameterExpressionNotValidAsDelegate(pex.Type.MakeByRefType(), pType); 556if (!TypeUtils.AreReferenceAssignable(pex.Type, pType)) { 557throw Error.ParameterExpressionNotValidAsDelegate(pex.Type, pType);
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
87/// <returns>The <see cref="Type"/> that represents the static type of the expression.</returns>
Microsoft\Scripting\Compiler\CompilerScope.cs (4)
275throw Error.UndefinedVariable(variable.Name, variable.Type, CurrentLambdaName); 312Type boxType = typeof(StrongBox<>).MakeGenericType(v.Type); 318lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(new Type[] { v.Type })); 322lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(new Type[] { v.Type }));
Microsoft\Scripting\Compiler\CompilerScope.Storage.cs (6)
60_local = compiler.GetNamedLocal(variable.IsByRef ? variable.Type.MakeByRefType() : variable.Type, variable); 107_boxType = typeof(StrongBox<>).MakeGenericType(variable.Type); 117LocalBuilder value = Compiler.GetLocal(Variable.Type); 151_boxType = typeof(StrongBox<>).MakeGenericType(variable.Type); 167LocalBuilder value = Compiler.GetLocal(Variable.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (1)
103if (TypeUtils.AreEquivalent(type, node.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (4)
599LocalBuilder value = GetLocal(variable.Type); 604_ilg.EmitStoreValueIndirect(variable.Type); 634_ilg.EmitLoadValueIndirect(node.Type); 930if (!TypeUtils.AreReferenceAssignable(variables[i].Type, TypeUtils.GetNonNullableType(arguments[i].Type))) {
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (2)
142return lambda.Parameters.Map(p => p.IsByRef ? p.Type.MakeByRefType() : p.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (3)
126Debug.Assert(p.Type.IsAssignableFrom(b.Left.Type) || 127p.Type.IsAssignableFrom(nnLeftType)); 133if (!p.Type.IsAssignableFrom(b.Left.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (1)
195Debug.Assert(TypeUtils.AreReferenceAssignable(testValue.Type, test.Type));
Microsoft\Scripting\Compiler\StackSpiller.Bindings.cs (2)
113if (memberTemp.Type.IsValueType) { 184if (memberTemp.Type.IsValueType) {
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (1)
61if (temp.Type == type) {
Microsoft\Scripting\Compiler\VariableBinder.cs (1)
236throw Error.UndefinedVariable(node.Name, node.Type, CurrentLambdaName);
System.Data.Entity (4)
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (1)
254result = Expression.Constant(value, p.Type);
System\Data\Objects\ELinq\Funcletizer.cs (3)
426if (parameterExp.Type.Equals(expression.Type)) 429return EntityUtil.NotSupported(Strings.CompiledELinq_UnsupportedNamedParameterType(parameterExp.Name, parameterExp.Type.FullName)); 643Type delegateType = TypeSystem.GetDelegateType(_compiledQueryParameters.Select(p => p.Type), _type);
System.Data.Linq (7)
SqlClient\Query\QueryConverter.cs (6)
371if (p.Type == typeof(Type)) { 372throw Error.BadParameterType(p.Type); 379typeof(Func<,>).MakeGenericType(typeof(object[]), p.Type), 383p.Type 389SqlClientParameter cp = new SqlClientParameter(p.Type, this.typeProvider.From(p.Type), accessor, this.dominatingExpression);
SqlClient\Query\Translator.cs (1)
183Expression sequenceExpression = Expression.Call(typeof(Enumerable), "Where", new Type[] {p.Type}, source, Expression.Lambda(whereExpression, p));
System.Data.Services (3)
System\Data\Services\Internal\NeedSkipTokenVisitor.cs (1)
182if (this.rt != null && p.Type != this.rt.InstanceType)
System\Data\Services\RequestUriProcessor.cs (2)
1030if (predicate.Parameters[0].Type != typeof(TSource) && 1031predicate.Parameters[0].Type.IsAssignableFrom(typeof(TSource)))
System.Data.Services.Client (6)
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
160Type lastSegmentType = re.Projection == null ? re.ResourceType : re.Projection.Selector.Parameters[0].Type;
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (4)
48ClientType.CheckElementTypeIsEntity(le.Parameters[0].Type) || // only attempt to rewrite if lambda parameter is not an entity type 49!(le.Parameters[0].Type.GetProperties().Any(p => p.PropertyType == proposedParameterType))) // lambda parameter must have public property that is same as proposed type. 70Type delegateType = typeof(Func<,>).MakeGenericType(new Type[] { newLambdaParameter.Type, lambda.Body.Type }); 87if (m.Type == this.newLambdaParameter.Type)
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
347if (!this.topLevelProjectionFound || lambda.Parameters.Count == 1 && ClientType.CheckElementTypeIsEntity(lambda.Parameters[0].Type))
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
201for (int i = 0; i < paramCount; i++) typeArgs[i] = parameters[i].Type;