I am passing a message from a server that gets stored into a string variable called strObject. I wish to convert the string inside strObject to upper case. So, I use ToUpper
strObject.ToUpper() returns a string in upper case
strObject.ToUpper()
string
Use the following ...
strObject = strObject.ToUpper().Trim();