Simple string manipulation should suffice:
if (str.Length > MaxLength)
str = str.SubString(0, MaxLength - 3) + "...";
Boom done.
solved Add “…” for a summary in C#
Simple string manipulation should suffice:
if (str.Length > MaxLength)
str = str.SubString(0, MaxLength - 3) + "...";
Boom done.
solved Add “…” for a summary in C#