Beispiel #1
0
 static internal void RegisterObject(string key, CEvents.ObjectEvent0 e)
 {
     if (CEventsStringDictionary.Instance.dic_StringObjectEvent0.ContainsKey(key))
     {
         CEventsStringDictionary.Instance.dic_StringObjectEvent0[key] += e;
     }
     else
     {
         CEventsStringDictionary.Instance.dic_StringObjectEvent0.Add(key, e);
     }
 }
 /// <summary>
 /// CEvent数据写入有返回值字典
 /// </summary>
 /// <param name="key">键</param>
 /// <param name="oe0F">无参有返回值委托</param>
 public void PutCEventInObjectDic(string key, Func <object> oe0F)
 {
     CEvents.ObjectEvent0 @object = new CEvents.ObjectEvent0(oe0F);
     CEventsStringTriggers.RegisterObject(key, @object);
 }