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