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

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'