Remove last semicolon from a string.

Remove last semicolon,comma from a string.

Hello,

Sometimes we need to remove last comma,semicolumn extra from a
string.

Below is simple way to do this.

text = text.TrimEnd(',');

This is better way instead of Substring option.




Posted in |

0 comments:

Post a Comment