SyntaxFix
Write A Post
Hire A Developer
Questions
public static string TruncateLongString(this string str, int maxLength) { return str.Length <= maxLength ? str : str.Remove(maxLength); }