コード例 #1
0
        public static Type GetType(string obsEventType)
        {
            ObsEventType type = (ObsEventType)Enum.Parse(typeof(ObsEventType), obsEventType);

            return(eventDictionary.TryGetValue(type, out Type value) ? value : null);;
        }
コード例 #2
0
 public static Type GetType(ObsEventType eventType)
 {
     return(eventDictionary.TryGetValue(eventType, out Type value) ? value : null);
 }