3 writes to Params
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (3)
1216
prop.
Params
= CreateParameterArray(null, property.GetIndexParameters());
1221
prop.
Params
= TypeArray.Empty;
1427
methodSymbol.
Params
= CreateParameterArray(methodSymbol.AssociatedMemberInfo, parameters);
57 references to Params
Microsoft.CSharp (57)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
267
ErrAppendParamList(TypeManager.SubstTypeArray(meth.
Params
, pctx), meth.isParamArray);
275
ErrAppendParamList(TypeManager.SubstTypeArray(indexer.
Params
, pctx), indexer.isParamArray);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (3)
812
if ((payload.Name.StartsWith("set_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).
Params
.Count > 1) ||
813
(payload.Name.StartsWith("get_", StringComparison.Ordinal) && ((MethodSymbol)swt.Sym).
Params
.Count > 0))
873
TypeArray parameters = TypeManager.SubstTypeArray(methprop.
Params
, type, typeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (2)
86
RearrangeNamedArguments(mpwi1.MethProp().
Params
, mpwi1, pTypeThrough, args),
87
RearrangeNamedArguments(mpwi2.MethProp().
Params
, mpwi2, pTypeThrough, args));
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
713
if (convCur.
Params
.Count != 1)
727
typeFrom = TypeManager.SubstType(convCur.
Params
[0], atsCur);
883
typeFrom = TypeManager.SubstType(uci.Meth.Meth().
Params
[0], uci.Meth.GetType());
984
typeFrom = TypeManager.SubstType(mwiBest.Meth().
Params
[0], mwiBest.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (15)
466
Debug.Assert(pwt.Prop().
Params
.Count == 0 || pwt.Prop() is IndexerSymbol);
593
if (!methCur.isOperator || methCur.
Params
.Count != 1)
600
TypeArray paramsCur = TypeManager.SubstTypeArray(methCur.
Params
, atsCur);
919
foreach (CType type in meth.
Params
.Items)
1078
Debug.Assert(mp.
Params
!= null);
1084
int paramCount = mp.
Params
.Count;
1085
TypeArray @params = mp.
Params
;
1114
if (paramCount == 1 && mp.isParamArray && argCount > mp.
Params
.Count)
1136
Debug.Assert(index != mp.
Params
.Count);
1141
mp.isParamArray && index == mp.
Params
.Count - 1)
1151
CType arrayType = (ArrayType)TypeManager.SubstType(mp.
Params
[mp.
Params
.Count - 1], type, pTypeArgs);
1178
if (mp.isParamArray && paramCount == 1 && argCount >= mp.
Params
.Count)
1218
CType substitutedArrayType = TypeManager.SubstType(mp.
Params
[mp.
Params
.Count - 1], type, pTypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (8)
146
_pCurrentParameters = _pCurrentSym.
Params
;
331
pAmbig1.mpwi.MethProp().
Params
.Count != pAmbig2.mpwi.MethProp().
Params
.Count ||
334
pAmbig1.mpwi.MethProp().
Params
== pAmbig2.mpwi.MethProp().
Params
)
451
else if (paramArrayArgument != null && index == methprop.
Params
.Count - 1)
839
for (int i = _pArguments.carg; i < _pCurrentSym.
Params
.Count; i++)
854
return TryGetExpandedParams(_pCurrentSym.
Params
, _pArguments.carg, out _pCurrentParameters);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (2)
147
(!symCur.name.Text.StartsWith("set_", StringComparison.Ordinal) || meth.
Params
.Count <= 1) &&
148
(!symCur.name.Text.StartsWith("get_", StringComparison.Ordinal) || meth.
Params
.Count <= 0))
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
92
Debug.Assert(pMethod.isParamArray || pMethod.
Params
== pMethodFormalParameterTypes);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (6)
2339
Debug.Assert(pCall.MethWithInst.Meth().
Params
.Count == 2);
2340
if (!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().
Params
[0], typeRet) ||
2341
!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().
Params
[1], typeRet))
2453
if (!method.isOperator || method.
Params
.Count != 2)
2458
TypeArray paramsCur = TypeManager.SubstTypeArray(method.
Params
, ats);
2619
TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().
Params
, mpwi.GetType());
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (1)
366
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)
33
TypeArray genericParams = TypeManager.SubstTypeArray(methSym.
Params
, aggType, methSym.typeVars);
106
TypeArray genericInstanceParams = TypeManager.SubstTypeArray(methSym.
Params
, aggType);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs (1)
33
TypeArray genericInstanceParams = TypeManager.SubstTypeArray(propSym.
Params
, aggType, null);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (2)
987
CType fptype1 = method.
Params
[0];
988
CType fptype2 = method.
Params
[1];
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
1253
if (isIndexer || prop.GetterMethod.
Params
.Count == 0)
1274
if (isIndexer || prop.SetterMethod.
Params
.Count == 1)