public Trigger GetTrigger(string triggerIdentifier) { if (triggers.ContainsKey(triggerIdentifier)) { return triggers[triggerIdentifier]; } var triggerObject = new Trigger(triggerIdentifier); triggers.Add(triggerIdentifier, triggerObject); newTriggers.Add(triggerObject); return triggerObject; }
public Trigger GetTrigger(string triggerIdentifier) { if (_triggers.ContainsKey(triggerIdentifier)) { return _triggers[triggerIdentifier]; } else { Trigger triggerObject = new Trigger(triggerIdentifier); _triggers.Add(triggerIdentifier, triggerObject); _newTriggers.Add(triggerObject); return triggerObject; } }