Esempio n. 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);
        }
Esempio n. 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);
        }
        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));
        }
 static extern void get_event_info(RuntimeEventInfo ev, out MonoEventInfo info);
Esempio n. 5
0
		static extern void get_event_info (MonoEvent ev, out MonoEventInfo info);
Esempio n. 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();
		}
Esempio n. 8
0
 static void get_event_info(MonoEvent ev, out MonoEventInfo info)
 {
     throw new System.NotImplementedException();
 }