I used a string in C #, where I use C # in Visual studio 2008. I wanted to convert it to uppercase.
string lowerString = txtCheck.Text;
string upperString = lowerString.ToUpper();
This was usually the way I should use it, but the fact is that I didn’t get any errors when I used it like that
string upperString = lowerString.ToUpper().Tostring();
Now I am confused that ToUpper () is also a function, whereas I can use the second syntax when I use ToUpper () again . Tostring (); , I mean that it will mean Function1 (). Function2 () .
source
share