62 references to GetType
Microsoft.CSharp (62)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
172SubstContext ctx = new SubstContext(TypeManager.SubstType(meth.swtSlot.GetType(), pctx)); 294SubstContext ctx = new SubstContext(TypeManager.SubstType(prop.swtSlot.GetType(), pctx));
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
644AggregateType propertyType = swt.GetType(); 685AggregateType fieldType = swt.GetType();
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (1)
221CType type = pTypeThrough ?? mpwi.GetType();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (5)
910typeFrom = TypeManager.SubstType(uci.Meth.Meth().Params[0], uci.Meth.GetType()); 911typeTo = TypeManager.SubstType(uci.Meth.Meth().RetType, uci.Meth.GetType()); 1007MethWithInst mwiBest = new MethWithInst(prguci[iuciBest].Meth.Meth(), prguci[iuciBest].Meth.GetType(), null); 1011typeFrom = TypeManager.SubstType(mwiBest.Meth().Params[0], mwiBest.GetType()); 1012typeTo = TypeManager.SubstType(mwiBest.Meth().RetType, mwiBest.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (25)
417pReturnType = TypeManager.SubstType(mwi.Meth().RetType, mwi.GetType(), mwi.TypeArgs); 447Debug.Assert(fwt.GetType() != null && fwt.Field().getClass() == fwt.GetType().OwningAggregate); 449CType pFieldType = TypeManager.SubstType(fwt.Field().GetType(), fwt.GetType()); 475pwt.GetType() != null && 476pwt.Prop().getClass() == pwt.GetType().OwningAggregate); 488mwtSet.GetType() == mwtGet.GetType() || 489SymbolLoader.HasBaseConversion(mwtGet.GetType(), mwtSet.GetType()) 505CType pReturnType = TypeManager.SubstType(pwt.Prop().RetType, pwt.GetType()); 523ACCESSERROR error = CSemanticChecker.CheckAccess2(mwtGet.Meth(), mwtGet.GetType(), ContextForMemberLookup, type); 675CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 697CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 702verifyMethodArgs(call, mpwi.GetType()); 859switch (CSemanticChecker.CheckAccess2(mwt.Meth(), mwt.GetType(), ContextForMemberLookup, type)) 954? new MethWithType(prop.GetterMethod, pwt.GetType()) 957? new MethWithType(prop.SetterMethod, pwt.GetType()) 971Debug.Assert(swt.GetType() != null && swt.GetType().OwningAggregate == swt.Sym.parent as AggregateSymbol); 1015if (typeObj is NullableType nubTypeObj && (typeTmp = nubTypeObj.GetAts()) != swt.GetType()) 1023Debug.Assert(swt.GetType().OwningAggregate == aggCalled); 1025pObject = tryConvert(pObject, swt.GetType(), CONVERTTYPE.NOUDC); 1094AdjustCallArgumentsForParams(callingObjectType, swt.GetType(), mp, pTypeArgs, argsPtr, out newArgs); 1420conv.Meth.GetType() == ats &&
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (3)
330, name, method.TypeArgs, method.MethProp()?.getKind() ?? SYMKIND.SK_MethodSymbol, method.GetType(), 34obj, new CMemberLookupResults(TypeArray.Allocate((CType)method.GetType()), name)); 62CreateMethodInfo(mwi.Meth(), mwi.GetType(), mwi.TypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (7)
334pAmbig1.mpwi.GetType() != pAmbig2.mpwi.GetType() || 796!_methList.Head().mpwi.GetType().IsInterfaceType) 1157Debug.Assert(!_results.BestResult || _results.BestResult.GetType().OwningAggregate.IsDelegate()); 1173_results.UninferableResult.Set(_mpwiCantInferInstArg.Sym as MethodSymbol, _mpwiCantInferInstArg.GetType(), _mpwiCantInferInstArg.TypeArgs); 1177MethWithType mwtCantInfer = new MethWithType(_results.UninferableResult.Meth(), _results.UninferableResult.GetType()); 1237return ErrorHandling.Error(ErrorCode.ERR_BadDelArgTypes, _results.BestResult.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
479ErrorCode.ERR_BindToBogusProp1, swt.Sym.name, new SymWithType(meth1 ?? meth2, swt.GetType()), 482ErrorCode.ERR_BindToBogusProp2, swt.Sym.name, new SymWithType(meth1, swt.GetType()), 483new SymWithType(meth2, swt.GetType()), new ErrArgRefOnly(swt.Sym));
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (4)
2640CType typeRetRaw = TypeManager.SubstType(pmethBest.mpwi.Meth().RetType, pmethBest.mpwi.GetType()); 2661verifyMethodArgs(call, mpwi.GetType()); 2672CType typeRetRaw = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 2684TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().Params, mpwi.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (3)
261Debug.Assert(!CheckAccess(swtBad.Sym, swtBad.GetType(), symWhere, typeQual) || 262!CheckTypeAccess(swtBad.GetType(), symWhere)); 264return CheckAccess2(swtBad.Sym, swtBad.GetType(), symWhere, typeQual)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (4)
104CType typeRet = TypeManager.SubstType(mwi.Meth().RetType, mwi.GetType(), mwi.TypeArgs); 139ExprFieldInfo pFieldInfo = ExprFactory.CreateFieldInfo(expr.FieldWithType.Field(), expr.FieldWithType.GetType()); 324Expr propInfo = ExprFactory.CreatePropertyInfo(expr.PropWithTypeSlot.Prop(), expr.PropWithTypeSlot.GetType()); 721method.GetType(), method.TypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (3)
127Debug.Assert(mwi.Meth() != null && mwi.GetType() != null && mwi.TypeArgs != null); 129Debug.Assert(mwi.GetType().OwningAggregate == mwi.Meth().getClass()); 133CheckConstraintsCore(mwi.Meth(), mwi.Meth().typeVars, mwi.TypeArgs, mwi.GetType().TypeArgsAll, mwi.TypeArgs, CheckConstraintsFlags.None);