In this tutorial we will learn how to check whether first character in a string is capital or not. It’s pretty simple and don’t required any professional coding. Let’s have a look how to do so.
string mystring = "Adeel"; if (mystring[0].ToString() == mystring[0].ToString().ToUpper()) { Response.Write("First character is capital"); } else { Response.Write("First character is not capital"); }
So that’s it, this is the proper and simple way.
Happy Coding!!!