FYI, I think that one does not need to get the IEnumerator in this code sample shown above.
public
static
void PrintKeysAndValues( NameValueCollection myCol ) {
IEnumerator myEnumerator = myCol.GetEnumerator();
Console.WriteLine( " KEY VALUE" );
foreach ( String s in myCol.AllKeys )
Console.WriteLine( " {0,-10} {1}", s, myCol[s] );
Console.WriteLine();
}
HTH.
Thank you.
-- Mark Kamoski