Base:
property
Type
System.Linq.Expressions.Expression.Type
62 references to Type
System.Activities (3)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
610
EnsureTypeReferenced(unary.
Type
, true, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (1)
1073
return Expression.MakeUnary(unary.NodeType, expr1, unary.
Type
, unary.Method);
System\Activities\ExpressionUtilities.cs (1)
1149
unaryExpression.
Type
,
System.Core (30)
Microsoft\Scripting\Ast\DebugViewWriter.cs (4)
866
Out("(" + node.
Type
.ToString() + ")");
869
Out("#(" + node.
Type
.ToString() + ")");
874
Out(node.
Type
== typeof(bool) ? "!" : "~");
928
Out(node.
Type
.ToString());
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
449
public Type Type { get { return _node.
Type
; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
675
Out(node.
Type
.Name);
Microsoft\Scripting\Ast\UnaryExpression.cs (6)
54
/// <returns>The <see cref="
Type
"/> that represents the static type of the expression.</returns>
93
bool resultIsNullable = TypeUtils.IsNullableType(this.
Type
);
96
(resultIsNullable && !TypeUtils.AreEquivalent(_method.ReturnType, this.
Type
));
108
return IsLifted && TypeUtils.IsNullableType(this.
Type
);
287
return Expression.MakeUnary(NodeType, operand,
Type
, Method);
998
if (!TypeUtils.AreReferenceAssignable(expression.Type, result.
Type
)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (1)
573
if (TypeUtils.AreReferenceAssignable(convert.
Type
, convert.Operand.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (14)
41
EmitConstant(quote.Operand, quote.
Type
);
51
if (quote.
Type
!= typeof(Expression)) {
52
_ilg.Emit(OpCodes.Castclass, quote.
Type
);
89
EmitBinaryOperator(ExpressionType.SubtractChecked, node.Operand.Type, node.Operand.Type, node.
Type
, false);
92
EmitUnaryOperator(node.NodeType, node.Operand.Type, node.
Type
);
272
Debug.Assert(node.
Type
.IsValueType && !TypeUtils.IsNullableType(node.
Type
));
276
_ilg.Emit(OpCodes.Unbox_Any, node.
Type
);
301
if (node.IsLifted && (!node.
Type
.IsValueType || !node.Operand.Type.IsValueType)) {
314
node.
Type
321
} else if (node.
Type
== typeof(void)) {
324
if (TypeUtils.AreEquivalent(node.Operand.Type, node.
Type
)) {
329
_ilg.EmitConvertToType(node.Operand.Type, node.
Type
, node.NodeType == ExpressionType.ConvertChecked);
342
_ilg.EmitConvertToType(resultType, node.
Type
, false);
Microsoft\Scripting\Compiler\StackSpiller.cs (2)
549
expr = Expression.Throw(value.Node, node.
Type
);
570
expr = new UnaryExpression(node.NodeType, expression.Node, node.
Type
, node.Method);
System\Linq\Expressions\ExpressionVisitor.cs (1)
111
return Expression.MakeUnary(u.NodeType, operand, u.
Type
, u.Method);
System.Data.Entity (5)
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (1)
128
return Expression.MakeUnary(u.NodeType, operand, u.
Type
, u.Method);
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
351
Debug.Assert(convertExpression.
Type
.IsGenericType && typeof(ObjectQuery<>) == convertExpression.
Type
.GetGenericTypeDefinition(), "MethodCall with internal MergeAs/IncludeSpan method was not constructed by LINQ to Entities?");
System\Data\Objects\ELinq\Translator.cs (2)
1268
Type toClrType = unary.
Type
;
1281
TypeUsage toType = parent.GetIsOrAsTargetType(fromType, ExpressionType.TypeAs, unary.
Type
, unary.Operand.Type);
System.Data.Linq (10)
SqlClient\Query\Funcletizer.cs (3)
47
if (ue.
Type
== typeof(object)) {
55
return Expression.Constant(null, ue.
Type
);
242
return Expression.MakeUnary(u.NodeType, operand, u.
Type
, u.Method);
SqlClient\Query\QueryConverter.cs (7)
640
return new SqlUnary(SqlNodeType.Treat, a.
Type
, typeProvider.From(a.
Type
), expr, a);
645
return new SqlUnary(SqlNodeType.Treat, a.
Type
, typeProvider.From(a.
Type
), ms, a);
688
return sql.MethodCall(c.
Type
, c.Method, null, new SqlExpression[] { exp }, dominatingExpression);
690
return this.VisitChangeType(c.Operand, c.
Type
);
1270
return sql.MethodCall(u.
Type
, u.Method, null, new SqlExpression[] { exp }, dominatingExpression);
System.Data.Services (1)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
221
return Expression.MakeUnary(u.NodeType, operand, u.
Type
, u.Method);
System.Data.Services.Client (13)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
221
return Expression.MakeUnary(u.NodeType, operand, u.
Type
, u.Method);
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (3)
170
if ((visited.NodeType == ExpressionType.Convert || visited.NodeType == ExpressionType.TypeAs) && visited.
Type
.IsAssignableFrom(visited.Operand.Type))
173
if (!ClientConvert.IsKnownNullableType(visited.Operand.Type) && !ClientConvert.IsKnownNullableType(visited.
Type
) || visited.Operand.Type == visited.
Type
)
System\Data\Services\Client\ALinq\ExpressionWriter.cs (2)
328
if (u.
Type
!= typeof(object))
339
this.builder.Append(this.TypeNameForUri(u.
Type
));
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (2)
357
Type targetType = Nullable.GetUnderlyingType(u.
Type
) ?? u.
Type
;
System\Data\Services\Client\ALinq\ResourceBinder.cs (5)
834
ue.
Type
.IsGenericType &&
835
(ue.
Type
.GetGenericTypeDefinition() == typeof(DataServiceQuery<>) ||
836
ue.
Type
.GetGenericTypeDefinition() == typeof(DataServiceQuery<>.DataServiceOrderedQuery)))
842
e = re.CreateCloneWithNewType(ue.
Type
);
1356
return expression.
Type
.IsAssignableFrom(expression.Operand.Type);