哪吒机器人提醒:

提醒:.net Questions - Stack Overflow
【标题】Truncate string on whole words in .Net C#
【摘要】hi,i am trying to truncate some long text in c#, but i don't want my string to be cut off part way through a word. does anyone have a function that i can use to truncate my string at the end of a word?e.g:"this was a long string..."not:"this was a long st..."thanks,tim... (04-14 07:36)