Posted By

indra on 08/24/10


Tagged

String


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

roli000
galofre
Tyster
tonicglop


Removing the last character of a string


 / Published in: C#
 

URL: http://forums.asp.net/t/935205.aspx

trimend() is cool

  1. // before : mystring = "abcde;"
  2.  
  3. mystring = mystring .TrimEnd(';');
  4.  
  5. // after : mystring = "abcde"

Report this snippet  

You need to login to post a comment.