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