Click here to Skip to main content
15,892,839 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)
17 Feb 2011CPOL1 min read 7.5K   2  
Couldn't resist: The following is a rewrite of Alternative 9, ToggleCaseHA()This is an unmanaged version which does direct manipulation of the input stringunsafe static string ToggleCaseUnmanaged(string str){ fixed(char* p = str) { for(int i=str.Length-1;i!=-1;--i)...

Views

Daily Counts

License

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


Written By
Founder CWAIN
Denmark Denmark
I have a MCPD .NET 3.5 EAD and a Bsc in computer science, organizational theory and economics.
After more than 24 years working as professional system engineer, I founded the independent consultant agency CWAIN.

Comments and Discussions