Base:
property
Type
System.Linq.Expressions.Expression.Type
1 override of Type
System.Core (1)
Microsoft\Scripting\Ast\NewExpression.cs (1)
131public sealed override Type Type {
42 references to Type
System.Activities (1)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
590EnsureTypeReferenced(newExpression.Type, true, typeReferences);
System.Core (19)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
801Out(".New " + node.Type.ToString());
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
343public Type Type { get { return _node.Type; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (2)
441node.NewExpression.Type.Name.Contains("<")) { 578Out("new " + node.Type.Name);
Microsoft\Scripting\Ast\ListInitExpression.cs (3)
65get { return _newExpression.Type; } 154MethodInfo addMethod = FindMethod(newExpression.Type, "Add", null, new Expression[] { initializerlist[0] }, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 233ValidateListInitArgs(newExpression.Type, initializerlist);
Microsoft\Scripting\Ast\MemberInitExpression.cs (2)
48get { return _newExpression.Type; } 176ValidateMemberInitArgs(newExpression.Type, roBindings);
Microsoft\Scripting\Ast\NewExpression.cs (1)
54/// <returns>The <see cref="Type"/> that represents the static type of the expression.</returns>
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (9)
523Debug.Assert(node.Type.IsValueType, "Only value type may have constructor not set."); 524LocalBuilder temp = GetLocal(node.Type); 526_ilg.Emit(OpCodes.Initobj, node.Type); 841if (init.NewExpression.Type.IsValueType && init.Bindings.Count > 0) { 842loc = _ilg.DeclareLocal(init.NewExpression.Type); 846EmitMemberInit(init.Bindings, loc == null, init.NewExpression.Type); 874if (init.NewExpression.Type.IsValueType) { 875loc = _ilg.DeclareLocal(init.NewExpression.Type); 879EmitListInit(init.Initializers, loc == null, init.NewExpression.Type);
System.Data.Entity (5)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (3)
336if (_userArgumentType != null && !nex.Type.IsPublic && nex.Type.Assembly == typeof(SecurityBoundaryExpressionVisitor).Assembly) 381nex.Type);
System\Data\Objects\ELinq\InitializerFacet.cs (1)
255: base(newExpression.Type)
System\Data\Objects\ELinq\Translator.cs (1)
719parent.CheckInitializerType(linq.Type);
System.Data.Linq (7)
SqlClient\Query\QueryConverter.cs (7)
822if (TypeSystem.IsNullableType(qn.Type) && qn.Arguments.Count == 1 && 823TypeSystem.GetNonNullableType(qn.Type) == qn.Arguments[0].Type) { 824return this.VisitCast(Expression.Convert(qn.Arguments[0], qn.Type)) as SqlExpression; 826else if (qn.Type == typeof(decimal) && qn.Arguments.Count == 1) { 830MetaType mt = this.services.Model.GetMetaType(qn.Type); 832throw Error.CannotMaterializeEntityType(qn.Type); 858if (qn.Type == typeof(decimal) && qn.Arguments.Count == 1) {
System.Data.Services.Client (10)
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (2)
472if (ClientType.CheckElementTypeIsEntity(nex.Type)) 702if (ClientType.CheckElementTypeIsEntity(nex.Type) &&
System\Data\Services\Client\ALinq\ResourceBinder.cs (4)
1722if (ne.Type.BaseType != typeof(object)) 1744PropertyInfo[] properties = ne.Type.GetProperties(BindingFlags.Public | BindingFlags.Instance); 2062return nex.Type.IsGenericType && WebUtil.IsDataServiceCollectionType(nex.Type.GetGenericTypeDefinition());
System\Data\Services\Client\ProjectionPlanCompiler.cs (4)
541Type projectedType = init.NewExpression.Type; 845nex.Type.GetConstructors(BindingFlags.NonPublic | BindingFlags.Instance).First( 848Type enumerable = typeof(IEnumerable<>).MakeGenericType(nex.Type.GetGenericArguments()[0]); 850if (result.Arguments.Count == 1 && result.Constructor == nex.Type.GetConstructor(new[] { enumerable }) &&