Click here to Skip to main content
15,881,089 members
Articles / Programming Languages / C#

How to Toggle String Case in .NET

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
7 Dec 2011CPOL 8.9K  
For VB.NET users:Public Function ToggleCase(input As String) As String Dim result As String = String.Empty Dim inputArray As Char() = input.ToCharArray() For Each c As Char In inputArray If Char.IsLower(c) Then result += [Char].ToUpper(c) Else result +=...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student Self Employed
India India
« I Love to Code ».
In the meantime I like to surf the Internet and get to know about new Technology, Watching Movies and playing cricket.


CodeProject helped me a lot to learn and I am always thankful to all the Members who make this happen.

Comments and Discussions