C char type character conversion case implementation code

  • 2020-05-17 06:14:12
  • OfStack

The C# char type has built-in case conversion methods: ToUpper and ToLower
char str1 = 'a';
char str2 = 'A';
Char.ToUpper(str1);

Char.ToLower(str2);


Related articles: