private string ExtractParamName(string shortDescription)
{
int whereBegins = shortDescription.IndexOf("{");
if (whereBegins < 0)
paramName = "PARAM";
else
{
int whereEnds = shortDescription.IndexOf("}");
if (whereEnds < whereBegins)
whereEnds = shortDescription.Length + 1;
paramName = shortDescription.Substring(whereBegins + 1, whereEnds - whereBegins - 1);
shortDescription =
shortDescription.Substring(0, whereBegins) +
paramName +
shortDescription.Substring(whereEnds + 1);
}
return shortDescription;
}