希望有人有个好主意.我有这样的字符串:
abcdefg abcde abc
我需要的是,如果超过指定的长度,他们将被剔除以显示如下:
abc .. abc .. abc
我可以使用任何简单的C#代码吗?
c# string
c# ×1
string ×1