private void SetParameterDataForMethProp(MethodOrPropertySymbol methProp, ParameterInfo[] parameters)
{
if (parameters.Length > 0)
{
// See if we have a param array.
var attributes = parameters[parameters.Length - 1].GetCustomAttributes(false);
if (attributes != null)
{
foreach (object o in attributes)
{
if (o is ParamArrayAttribute)
{
methProp.isParamArray = true;
}
}
}
// Mark the names of the parameters, and their default values.
for (int i = 0; i < parameters.Length; i++)
{
SetParameterAttributes(methProp, parameters, i);
// Insert the name.
methProp.ParameterNames.Add(GetName(parameters[i].Name));
}
}
}