public static Type GetType(string obsEventType) { ObsEventType type = (ObsEventType)Enum.Parse(typeof(ObsEventType), obsEventType); return(eventDictionary.TryGetValue(type, out Type value) ? value : null);; }
public static Type GetType(ObsEventType eventType) { return(eventDictionary.TryGetValue(eventType, out Type value) ? value : null); }