Coding suggestion: use SortedList<string,string>

Nov 21, 2008 at 7:19 PM
Since you use generics in some places why don't you use SortedList<string,string> everywhere you use SortedList at the moment, then you can get rid of stuff like:

                        webRequest.ContentType = headers[key] as string;

Also, instead of
                    if (interestingHeaders.IndexOfKey(header) == -1)

you could use
                    if (!interestingHeaders.ContainsKey(header))