private static string GetParamName(string paramName, int index) { if (index >= 0) { return $"{paramName}[{index}]"; } return paramName; } }