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