/// <summary> /// Get the intent with the given name if it exists, otherwise create it and return it. /// </summary> /// <param name="name"></param> /// <returns></returns> public static ControlIntent GetIntent(string name) { if (Intents.ContainsKey(name)) return Intents[name]; var intent = new ControlIntent(name); Intents.Add(name, intent); return intent; }
/// <summary> /// Get the intent with the given name if it exists, otherwise create it and return it. /// </summary> /// <param name="name"></param> /// <returns></returns> public static ControlIntent GetIntent(string name) { if (Intents.ContainsKey(name)) { return(Intents[name]); } var intent = new ControlIntent(name); Intents.Add(name, intent); return(intent); }