[Q] How to
truncate a string in C# with more than 10 characters and keep word boundaries
(do not split a word in two)?
[Examples]
"Good morning test." -> "Good morni..." (wrong),
"Good morning..." (correct)
[Q] How to
truncate a string in C# with more than 10 characters and keep word boundaries
(do not split a word in two)?
[Examples]
"Good morning test." -> "Good morni..." (wrong),
"Good morning..." (correct)