public static string Truncate(string source, int length) { if (source.Length > length) { source = source.Substring(0, length); } return source; }
Last Updated on October 26, 2015
public static string Truncate(string source, int length) { if (source.Length > length) { source = source.Substring(0, length); } return source; }