Thursday, April 27, 2017

character manipulations in C#!

change the case:

myCharacter = Char.ToUpper(myCharacter);

 
 

some true or false checks around char type variables in C#:

  • if (Char.IsLetter(myCharacter)) {
  • if (Char.IsUpper(myCharacter)) {
  • if (Char.IsLower(myCharacter)) {

No comments:

Post a Comment