コード例 #1
0
        public BasicDelegateAdder GetBasicDelegateAdder()
        {
            if (basic_delegate_adder == null)
            {
                basic_delegate_adder = GetNativeEventInfo().CreateDynamicDelegateAdderDelegate <BasicDelegateAdder>();
            }

            return(basic_delegate_adder);
        }
コード例 #2
0
 static public DelegateAdder <T> GetTypeSafe <T>(this BasicDelegateAdder item)
 {
     return(delegate(object obj, T value) {
         item(obj, value);
     });
 }