public void AddToNamespace(String names, EventParser ev) { EventNamespace e = null; if (!NamespaceMap.ContainsKey(names)) { e = new EventNamespace(names); NamespaceMap[names] = e; } else { e = NamespaceMap[names]; } e.events.Add(ev); e.eventmap[ev.GetProperty("id").Value.ToString().Replace(names + ".", "")] = ev; }