79 references to
Microsoft.CSharp (79)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
90
ErrAppendType(@params
[
i], null);
153
ErrAppendType(@params
[
i], pctx);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
890
pArg = _binder.tryConvert(pArg, parameters
[
i]);
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (7)
120
CType type1 = ta1
[
i];
121
CType type2 = ta2
[
i];
226
typeList[iParam] = pta
[
iParam];
237
CType tempType = pta
[
index];
316
CType p1 = pta1
[
i];
317
CType p2 = pta2
[
i];
326
CType argType = arg?.RuntimeObjectActualType ?? args.types
[
i];
Microsoft\CSharp\RuntimeBinder\Semantics\Conversions.cs (3)
246
CType pSourceArg = pSourceArgs
[
iParam];
247
CType pTargetArg = pTargetArgs
[
iParam];
256
TypeParameterType pParam = (TypeParameterType)pTypeParams
[
iParam];
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (5)
1137
CType substDestType = TypeManager.SubstType(@params
[
index], type, pTypeArgs);
1151
CType arrayType = (ArrayType)TypeManager.SubstType(mp.Params
[
mp.Params.Count - 1], type, pTypeArgs);
1170
CType substDestType = TypeManager.SubstType(@params
[
iDst], type, pTypeArgs);
1218
CType substitutedArrayType = TypeManager.SubstType(mp.Params
[
mp.Params.Count - 1], type, pTypeArgs);
1359
CType type = @params
[
@params.Count - 1];
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (10)
449
pNewArg = GenerateOptionalArgument(methprop, @params
[
index], index);
697
pArguments[index] = GenerateOptionalArgument(methprop, @params
[
i], i);
917
CType var = _pCurrentParameters
[
ivar];
928
CType var = _pCurrentParameters
[
ivar];
955
else if (ivar == _nArgBest && _pArguments.types
[
ivar] != var)
960
CType argStripped = _pArguments.types
[
ivar] is ParameterModifierType modArg ?
961
modArg.ParameterType : _pArguments.types
[
ivar];
1023
CType pType = _pCurrentParameters
[
iParam];
1037
Expr pArgumentNew = GenerateOptionalArgument(pMethod, _pCurrentParameters
[
iParam], iParam);
1052
CType type = typeVars
[
i];
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinderResult.cs (3)
34
if (pTypeArgs
[
i] == null)
55
if (pTypeArgs1
[
i] is AggregateType aggArg1)
59
if (pTypeArgs2
[
i] is AggregateType aggArg2)
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
419
AggregateType type = (AggregateType)types
[
i];
429
typeCur ??= (AggregateType)types
[
itypeNext++];
466
typeCur = types
[
itypeNext++] as AggregateType;
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (1)
161
CurrentType = _containingTypes
[
_currentTypeIndex++] as AggregateType;
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (19)
159
Debug.Assert(_pMethodTypeParameters
[
iParam] == pParam);
276
CType pDest = _pMethodFormalParameterTypes
[
iArg];
287
CType pSource = pExpr.RuntimeObjectActualType ?? _pMethodArguments.types
[
iArg];
884
ExactInference(pSourceArgs
[
arg], pDestArgs
[
arg]);
1250
TypeParameterType pTypeParam = (TypeParameterType)pTypeParams
[
arg];
1251
CType pSourceArg = pSourceArgs
[
arg];
1252
CType pDestArg = pDestArgs
[
arg];
1264
UpperBoundInference(pSourceArgs
[
arg], pDestArgs
[
arg]);
1269
ExactInference(pSourceArgs
[
arg], pDestArgs
[
arg]);
1557
TypeParameterType pTypeParam = (TypeParameterType)pTypeParams
[
arg];
1558
CType pSourceArg = pSourceArgs
[
arg];
1559
CType pDestArg = pDestArgs
[
arg];
1571
LowerBoundInference(pSourceArgs
[
arg], pDestArgs
[
arg]);
1576
ExactInference(pSourceArgs
[
arg], pDestArgs
[
arg]);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (1)
247
return classTyVars
[
signature[indexIntoSignatures++]];
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (1)
109
if (!CheckTypeAccess(typeArgs
[
i], symWhere))
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (2)
44
TypeParameterType var = (TypeParameterType)typeVars
[
ivar];
54
if (TypeManager.TypeContainsType(Params
[
ipar], var))
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (3)
372
CType pSourceArg = pSourceArgs
[
iParam];
373
CType pDestArg = pDestArgs
[
iParam];
379
TypeParameterType pParam = (TypeParameterType)pTypeParams
[
iParam];
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (3)
64
if (!TypesAreEqual(parameters[i].ParameterType, genericParams
[
i].AssociatedSystemType))
81
typeArgs[i] = Method.TypeArgs
[
i].AssociatedSystemType;
131
if (!TypesAreEqual(parameters[i].ParameterType, genericInstanceParams
[
i].AssociatedSystemType))
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs (1)
60
if (!TypesAreEqual(parameters[i].ParameterType, genericInstanceParams
[
i].AssociatedSystemType))
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (4)
104
CType arg = typeArgsThis
[
i].GetNakedType(true);
149
TypeParameterType var = (TypeParameterType)typeVars
[
i];
150
CType arg = typeArgs
[
i];
211
CType typeBnd = bnds
[
j];
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
321
CType typeArg = typeArgs
[
i];
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (9)
353
if (!SubstEqualTypesCore(taDst
[
i], taSrc
[
i], ctx))
418
if (!SubstEqualTypesCore(atsDst.TypeArgsAll
[
i], atsSrc.TypeArgsAll
[
i], pctx))
490
if (TypeContainsType(ats.TypeArgsAll
[
i], typeFind))
528
if (TypeContainsTyVars(ats.TypeArgsAll
[
i], typeVars))
540
return ivar < typeVars.Count && type == typeVars
[
ivar];
687
CType typeArg = typeArgs
[
i];
695
if (!typeArg.IsReferenceType || !((TypeParameterType)typeParams
[
i]).Covariant)