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 |
- class StringExtensions
- namespace Wokhan.Core.Extensions