Click here to Skip to main content
11,565,743 members (45,334 online)
Click here to Skip to main content

How to Toggle String Case in .Net

, 14 Feb 2011 CPOL 2.2K 2
What about this?string s = new string(( from c in "ABCdef" select char.IsUpper(c) ? char.ToLower(c) : char.ToUpper(c) ).ToArray());
This is an old version of the currently published tip/trick.

This article is still being written and is not currently available for general viewing.

Please go to the Programming Tips Table of Contents to view the list of available articles in this section.

You may also be interested in...

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