Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 481 Bytes

File metadata and controls

19 lines (13 loc) · 481 Bytes

StringExtensions.Truncate method

Truncates a string to the specified max length (if needed)

public static string Truncate(this string str, int maxLen)
parameter description
str Source string
maxLen Maximum length to truncate the string at

See Also