internal static ICodeWriter AppendParameters(this ICodeWriter @this, IReadOnlyList <ParameterInfo> parameters) { if (parameters.Count == 0) { return(@this.Append("()")); } @this.Append("( "); bool isFirstParameter = true; foreach (var p in parameters) { if (isFirstParameter) { isFirstParameter = false; } else { @this.Append(", "); } @this.AddParameter(p); } return(@this.Append(" )")); }