Пример #1
0
        public override MethodInfo GetRaiseMethod(bool nonPublic)
        {
            MonoEventInfo info = GetEventInfo(this);

            if (nonPublic || (info.raise_method != null && info.raise_method.IsPublic))
            {
                return(info.raise_method);
            }
            return(null);
        }
Пример #2
0
        public override MethodInfo GetRemoveMethod(bool nonPublic)
        {
            MonoEventInfo info;

            MonoEventInfo.get_event_info(this, out info);

            if (nonPublic || (info.remove_method != null && info.remove_method.IsPublic))
            {
                return(info.remove_method);
            }
            return(null);
        }
Пример #3
0
        internal BindingFlags GetBindingFlags()
        {
            MonoEventInfo info = GetEventInfo(this);

            MethodInfo method = info.add_method;

            if (method == null)
            {
                method = info.remove_method;
            }
            if (method == null)
            {
                method = info.raise_method;
            }

            return(RuntimeType.FilterPreCalculate(method != null && method.IsPublic, GetDeclaringTypeInternal() != ReflectedType, method != null && method.IsStatic));
        }
Пример #4
0
 static extern void get_event_info(RuntimeEventInfo ev, out MonoEventInfo info);
Пример #5
0
		static extern void get_event_info (MonoEvent ev, out MonoEventInfo info);
Пример #6
0
 static extern void get_event_info(MonoEvent ev, out MonoEventInfo info);
		static void get_event_info (MonoEvent ev, out MonoEventInfo info)
		{
			throw new System.NotImplementedException();
		}
Пример #8
0
 static void get_event_info(MonoEvent ev, out MonoEventInfo info)
 {
     throw new System.NotImplementedException();
 }