Click here to Skip to main content
13,151,514 members (47,720 online)

Articles by TimB99 (Tip/Trick: 1)

Tip/Trick: 1

RSS Feed
No articles have been posted.
No blogs have been submitted.

Average tips rating: 0.00

Programming Tips
General
Posted: 14 Feb 2011   Updated: 14 Feb 2011   Views: 3,570   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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...
No reference articles have been posted.

TimB99
Software Developer
New Zealand New Zealand
This member doesn't quite have enough reputation to be able to display their biography and homepage.


Advertise | Privacy |
Web01 | 2.8.170924.2 | Last Updated 26 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid