Extension methods can also be used like ordinary static class methods. This way of calling an extension method is more verbose, but is necessary in some cases.
static class StringExtensions
{
public static string Shorten(this string text, int length)
{
return text.Substring(0, ...