ToUpper() method not working

前端 未结 6 923
星月不相逢
星月不相逢 2021-01-20 09:52

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

6条回答
  •  情书的邮戳
    2021-01-20 10:00

    strObject.ToUpper() returns a string in upper case

    Use the following ...

    strObject = strObject.ToUpper().Trim();
    

提交回复
热议问题