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