Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

How to Toggle String Case in .NET

, 14 Feb 2011 CPOL
What about this?string s = new string(( from c in "ABCdef" select char.IsUpper(c) ? char.ToLower(c) : char.ToUpper(c) ).ToArray());Note by Alexander Bell: In regards to the performance, this one (i.e. Alternate 9) is the worst in comparison...

Statistics


License

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

Share

About the Author

TimB99
Software Developer
New Zealand New Zealand
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141216.1 | Last Updated 14 Feb 2011
Article Copyright 2011 by TimB99
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid