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