how to use trimend


can 1 me understand role of method

"trimend()"with exemple

this must self-explaning code:


string mystring = "a string                    ";
// removes whitespaces @ end of string
mystring = mystring.trimend( ' ' );

mystring = "a string__________________________";
// removes underscores @ end of string
mystring = mystring.trimend( '_' );

 



Archived Forums V  >  Visual C# Language



Comments

Popular posts from this blog

SQL Server 2008 - High Memory Usage

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Problem In Configuring Biztalk 2009 In Creating A ReceivePort.When I Try To Create A Receive POrt I Got This Error