62 references to GetType
Microsoft.CSharp (62)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
166SubstContext ctx = new SubstContext(TypeManager.SubstType(meth.swtSlot.GetType(), pctx)); 285SubstContext ctx = new SubstContext(TypeManager.SubstType(prop.swtSlot.GetType(), pctx));
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
627AggregateType propertyType = swt.GetType(); 665AggregateType fieldType = swt.GetType();
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (1)
219CType type = pTypeThrough ?? mpwi.GetType();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (5)
883typeFrom = TypeManager.SubstType(uci.Meth.Meth().Params[0], uci.Meth.GetType()); 884typeTo = TypeManager.SubstType(uci.Meth.Meth().RetType, uci.Meth.GetType()); 980MethWithInst mwiBest = new MethWithInst(prguci[iuciBest].Meth.Meth(), prguci[iuciBest].Meth.GetType(), null); 984typeFrom = TypeManager.SubstType(mwiBest.Meth().Params[0], mwiBest.GetType()); 985typeTo = TypeManager.SubstType(mwiBest.Meth().RetType, mwiBest.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (25)
408pReturnType = TypeManager.SubstType(mwi.Meth().RetType, mwi.GetType(), mwi.TypeArgs); 437Debug.Assert(fwt.GetType() != null && fwt.Field().getClass() == fwt.GetType().OwningAggregate); 439CType pFieldType = TypeManager.SubstType(fwt.Field().GetType(), fwt.GetType()); 464pwt.GetType() != null && 465pwt.Prop().getClass() == pwt.GetType().OwningAggregate); 477mwtSet.GetType() == mwtGet.GetType() || 478SymbolLoader.HasBaseConversion(mwtGet.GetType(), mwtSet.GetType()) 494CType pReturnType = TypeManager.SubstType(pwt.Prop().RetType, pwt.GetType()); 512ACCESSERROR error = CSemanticChecker.CheckAccess2(mwtGet.Meth(), mwtGet.GetType(), ContextForMemberLookup, type); 662CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 683CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 688verifyMethodArgs(call, mpwi.GetType()); 840switch (CSemanticChecker.CheckAccess2(mwt.Meth(), mwt.GetType(), ContextForMemberLookup, type)) 932? new MethWithType(prop.GetterMethod, pwt.GetType()) 935? new MethWithType(prop.SetterMethod, pwt.GetType()) 948Debug.Assert(swt.GetType() != null && swt.GetType().OwningAggregate == swt.Sym.parent as AggregateSymbol); 992if (typeObj is NullableType nubTypeObj && (typeTmp = nubTypeObj.GetAts()) != swt.GetType()) 1000Debug.Assert(swt.GetType().OwningAggregate == aggCalled); 1002pObject = tryConvert(pObject, swt.GetType(), CONVERTTYPE.NOUDC); 1070AdjustCallArgumentsForParams(callingObjectType, swt.GetType(), mp, pTypeArgs, argsPtr, out newArgs); 1394conv.Meth.GetType() == ats &&
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (3)
320, name, method.TypeArgs, method.MethProp()?.getKind() ?? SYMKIND.SK_MethodSymbol, method.GetType(), 33obj, new CMemberLookupResults(TypeArray.Allocate((CType)method.GetType()), name)); 55CreateMethodInfo(mwi.Meth(), mwi.GetType(), mwi.TypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (7)
333pAmbig1.mpwi.GetType() != pAmbig2.mpwi.GetType() || 795!_methList.Head().mpwi.GetType().IsInterfaceType) 1156Debug.Assert(!_results.BestResult || _results.BestResult.GetType().OwningAggregate.IsDelegate()); 1172_results.UninferableResult.Set(_mpwiCantInferInstArg.Sym as MethodSymbol, _mpwiCantInferInstArg.GetType(), _mpwiCantInferInstArg.TypeArgs); 1176MethWithType mwtCantInfer = new MethWithType(_results.UninferableResult.Meth(), _results.UninferableResult.GetType()); 1236return ErrorHandling.Error(ErrorCode.ERR_BadDelArgTypes, _results.BestResult.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
478ErrorCode.ERR_BindToBogusProp1, swt.Sym.name, new SymWithType(meth1 ?? meth2, swt.GetType()), 481ErrorCode.ERR_BindToBogusProp2, swt.Sym.name, new SymWithType(meth1, swt.GetType()), 482new SymWithType(meth2, swt.GetType()), new ErrArgRefOnly(swt.Sym));
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (4)
2577CType typeRetRaw = TypeManager.SubstType(pmethBest.mpwi.Meth().RetType, pmethBest.mpwi.GetType()); 2597verifyMethodArgs(call, mpwi.GetType()); 2607CType typeRetRaw = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 2619TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().Params, mpwi.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (3)
256Debug.Assert(!CheckAccess(swtBad.Sym, swtBad.GetType(), symWhere, typeQual) || 257!CheckTypeAccess(swtBad.GetType(), symWhere)); 259return CheckAccess2(swtBad.Sym, swtBad.GetType(), symWhere, typeQual)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (4)
103CType typeRet = TypeManager.SubstType(mwi.Meth().RetType, mwi.GetType(), mwi.TypeArgs); 138ExprFieldInfo pFieldInfo = ExprFactory.CreateFieldInfo(expr.FieldWithType.Field(), expr.FieldWithType.GetType()); 323Expr propInfo = ExprFactory.CreatePropertyInfo(expr.PropWithTypeSlot.Prop(), expr.PropWithTypeSlot.GetType()); 720method.GetType(), method.TypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (3)
125Debug.Assert(mwi.Meth() != null && mwi.GetType() != null && mwi.TypeArgs != null); 127Debug.Assert(mwi.GetType().OwningAggregate == mwi.Meth().getClass()); 131CheckConstraintsCore(mwi.Meth(), mwi.Meth().typeVars, mwi.TypeArgs, mwi.GetType().TypeArgsAll, mwi.TypeArgs, CheckConstraintsFlags.None);