Lowercase and Uppercase

by Sam Allen | RSS

There are many different ways to lowercase and uppercase strings in the C# language, transforming "ABC" to "abc" and back again. However, some ways are more efficient and lead to faster code than others, and sometimes you don't need to change cases at all.

Case-Insensitive string.Equals Method
Char Lowercase Optimization
char.IsLower Methods
char.ToLower Methods
String IsUpper and IsLower Methods
ToLower String Method
ToLowerInvariant and ToUpperInvariant Methods
ToUpper Method
Uppercase First Letter
Uppercase Words in String

Dot Net Perls | Search
Featured | 7-Zip Command-Line Examples | DataGridView Tips and Secrets | Dictionary Examples, Keys and Values | List Examples | Split String Examples
C# | Obsolete Attribute | True and False | Gradient Tips | Catch Examples
© 2010 Sam Allen. All rights reserved.
Dot Net Perls | Sam Allen