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