3 writes to Params
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (3)
1241
prop.
Params
= CreateParameterArray(null, property.GetIndexParameters());
1246
prop.
Params
= TypeArray.Empty;
1454
methodSymbol.
Params
= CreateParameterArray(methodSymbol.AssociatedMemberInfo, parameters);
57 references to Params
Microsoft.CSharp (57)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
273
ErrAppendParamList(TypeManager.SubstTypeArray(meth.
Params
, pctx), meth.isParamArray);
282
ErrAppendParamList(TypeManager.SubstTypeArray(indexer.
Params
, pctx), indexer.isParamArray);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (3)
834
if ((payload.Name.StartsWith("set_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).
Params
.Count > 1) ||
835
(payload.Name.StartsWith("get_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).
Params
.Count > 0))
896
TypeArray parameters = TypeManager.SubstTypeArray(methprop.
Params
, type, typeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (2)
87
RearrangeNamedArguments(mpwi1.MethProp().
Params
, mpwi1, pTypeThrough, args),
88
RearrangeNamedArguments(mpwi2.MethProp().
Params
, mpwi2, pTypeThrough, args));
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
740
if (convCur.
Params
.Count != 1)
754
typeFrom = TypeManager.SubstType(convCur.
Params
[0], atsCur);
910
typeFrom = TypeManager.SubstType(uci.Meth.Meth().
Params
[0], uci.Meth.GetType());
1011
typeFrom = TypeManager.SubstType(mwiBest.Meth().
Params
[0], mwiBest.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (15)
477
Debug.Assert(pwt.Prop().
Params
.Count == 0 || pwt.Prop() is IndexerSymbol);
605
if (!methCur.isOperator || methCur.
Params
.Count != 1)
612
TypeArray paramsCur = TypeManager.SubstTypeArray(methCur.
Params
, atsCur);
940
foreach (CType type in meth.
Params
.Items)
1103
Debug.Assert(mp.
Params
!= null);
1109
int paramCount = mp.
Params
.Count;
1110
TypeArray @params = mp.
Params
;
1139
if (paramCount == 1 && mp.isParamArray && argCount > mp.
Params
.Count)
1161
Debug.Assert(index != mp.
Params
.Count);
1166
mp.isParamArray && index == mp.
Params
.Count - 1)
1176
CType arrayType = (ArrayType)TypeManager.SubstType(mp.
Params
[mp.
Params
.Count - 1], type, pTypeArgs);
1203
if (mp.isParamArray && paramCount == 1 && argCount >= mp.
Params
.Count)
1243
CType substitutedArrayType = TypeManager.SubstType(mp.
Params
[mp.
Params
.Count - 1], type, pTypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (8)
147
_pCurrentParameters = _pCurrentSym.
Params
;
332
pAmbig1.mpwi.MethProp().
Params
.Count != pAmbig2.mpwi.MethProp().
Params
.Count ||
335
pAmbig1.mpwi.MethProp().
Params
== pAmbig2.mpwi.MethProp().
Params
)
452
else if (paramArrayArgument != null && index == methprop.
Params
.Count - 1)
840
for (int i = _pArguments.carg; i < _pCurrentSym.
Params
.Count; i++)
855
return TryGetExpandedParams(_pCurrentSym.
Params
, _pArguments.carg, out _pCurrentParameters);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (2)
148
(!symCur.name.Text.StartsWith("set_", StringComparison.Ordinal) || meth.
Params
.Count <= 1) &&
149
(!symCur.name.Text.StartsWith("get_", StringComparison.Ordinal) || meth.
Params
.Count <= 0))
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
93
Debug.Assert(pMethod.isParamArray || pMethod.
Params
== pMethodFormalParameterTypes);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (6)
2396
Debug.Assert(pCall.MethWithInst.Meth().
Params
.Count == 2);
2397
if (!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().
Params
[0], typeRet) ||
2398
!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().
Params
[1], typeRet))
2513
if (!method.isOperator || method.
Params
.Count != 2)
2518
TypeArray paramsCur = TypeManager.SubstTypeArray(method.
Params
, ats);
2684
TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().
Params
, mpwi.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (1)
375
TypeManager.SubstEqualTypeArrays(methsym.
Params
, argumentTypes, null, methsym.typeVars))
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (2)
92
Debug.Assert(index <
Params
.Count);
125
Debug.Assert(index <
Params
.Count);
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (4)
48
if (ipar >=
Params
.Count)
54
if (TypeManager.TypeContainsType(
Params
[ipar], var))
74
Params
.Count == 1 &&
75
Params
[0] is TypeParameterType &&
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (2)
34
TypeArray genericParams = TypeManager.SubstTypeArray(methSym.
Params
, aggType, methSym.typeVars);
107
TypeArray genericInstanceParams = TypeManager.SubstTypeArray(methSym.
Params
, aggType);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs (1)
34
TypeArray genericInstanceParams = TypeManager.SubstTypeArray(propSym.
Params
, aggType, null);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (2)
988
CType fptype1 = method.
Params
[0];
989
CType fptype2 = method.
Params
[1];
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
1278
if (isIndexer || prop.GetterMethod.
Params
.Count == 0)
1299
if (isIndexer || prop.SetterMethod.
Params
.Count == 1)