protected string GetComment(Resource resource, Method method, string url) { var description = resource.Description; if (!string.IsNullOrWhiteSpace(method.Description)) { description += string.IsNullOrWhiteSpace(description) ? method.Description : ". " + method.Description; } if (description != null) { description = new SchemaParameterParser(new EnglishPluralizationService()).Parse(description, resource, method, url); } description = ParserHelpers.RemoveNewLines(description); if (!string.IsNullOrWhiteSpace(resource.DisplayName)) { description += string.IsNullOrWhiteSpace(description) ? resource.DisplayName : " - " + resource.DisplayName; } return(description); }