I want to build a list containing every possible permutation of capitalization of a word. so it would be
List permutate(string word)
{
List
You can modify individual characters if you convert your string to an array of char. Something like this should do the trick...
public static List Permute( string s )
{
List listPermutations = new List();
char[] array = s.ToLower().ToCharArray();
int iterations = (1 << array.Length) - 1;
for( int i = 0; i <= iterations; i++ )
{
for( int j = 0; j < array.Length; j++ )
array[j] = (i & (1<