Beispiel #1
0
 static internal void Register <T>(string key, CEvents.VoidEvent1 <T> e)
 {
     if (CEventsStringDictionary <T> .Instance.dic_StringVoidEvent1.ContainsKey(key))
     {
         CEventsStringDictionary <T> .Instance.dic_StringVoidEvent1[key] += e;
     }
     else
     {
         CEventsStringDictionary <T> .Instance.dic_StringVoidEvent1.Add(key, e);
     }
 }
 /// <summary>
 /// CEvent数据写入无返回值字典
 /// </summary>
 /// <typeparam name="T">无返回值委托的参数T</typeparam>
 /// <param name="key">键</param>
 /// <param name="ve1A">无返回值委托</param>
 public void PutCEventInVoidDic <T>(string key, Action <T> ve1A)
 {
     CEvents.VoidEvent1 <T> @void = new CEvents.VoidEvent1 <T>(ve1A);
     CEventsStringTriggers.Register <T>(key, @void);
 }