static Hashtable CreateHash (XMLNamespace [] other) { Hashtable result = new Hashtable (); if (other != null) { int i = 0; foreach (XMLNamespace n in other) { result [n.Name] = i++; } } return result; }