// Load the switch values from the configuration into a hash table. private static void LoadSwitchValues(Hashtable values) { Hashtable switches; lock (typeof(Trace)) { Trace.Initialize(); switches = Trace.switches; } if (switches != null) { IDictionaryEnumerator e = switches.GetEnumerator(); while (e.MoveNext()) { try { values[e.Key] = Int32.Parse((String)(e.Value)); } catch (Exception) { // Ignore parsing errors. } } } }