Я не понимаю, что есть что. Может кто-нибудь объяснить разницу между ними.
Например, следующее возвращает MvcHtmlString расширение или вспомогательный метод?
public static class LinkExtensions
{
public static MvcHtmlString HdrLinks(
this HtmlHelper helper,
string topLink,
string subLink,
System.Security.Principal.IPrincipal user)
{
etc ...
Как насчет этого:
public static class Slug
{
public static string Generate(string phrase, int maxLength = 50)
{
string str = RemoveAccent(phrase).ToLower();
str = Regex.Replace(str, @"[^a-z0-9\s-]", " ");
str = Regex.Replace(str, @"[\s-]+", " ").Trim();
str = str.Substring(0, str.Length <= maxLength ? str.Length : maxLength).Trim();
str = Regex.Replace(str, @"\s", "-");
return str;
}