public static Map<String, Integer> toMap(String[] keys) {Map<String, Integer> m = new HashMap<String, Integer>();for (int i=0; i<keys.length; i++) {m.put(keys[i], i);}return m;}

public static IDictionary<string, int> ToMap(string[] keys){IDictionary<string, int> m = new Dictionary<string, int>();for (int i = 0; i < keys.Length; i++){m[keys[i]] = i;}return m;}
