Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
24 Feb 2012Andreas Gieriet
This alternative is not substantially different, it simply splits the function into two:one for clippingone for comparingpublic static string ExtClipRight(this string a, int n){ return (n < 0 || a.Length <= n) ? a : a.Substring(0, n);}...public static bool...