Uppercase and Lowercase The ToUpper and ToLower methods
convert a string in uppercase and lowercase respectively. These methods
are easy to use. The following code shows how to use ToUppler and
ToLower methods.string aStr = "adgas";string bStr = "ABNMDWER";string strRes = aStr.ToUpper();Console.WriteLine("Uppercase:"+ strRes.ToString());strRes = bStr.ToLower();Console.WriteLine("Lowercase:"+ strRes.ToString());Read C# Strings
to learn more about strings in C#.
C# Corner founder, 11-times Microsoft MVP, technical author, and solutions architect. Mahesh authored his first book, A Programmer’s Guide to ADO.NET in C# with APress at the age of 25. C# Corner is a mem... Read more
C# Corner. All contents are copyright of their authors.