get_event_info() приватный Метод

private get_event_info ( System.Reflection.MonoEvent ev, MonoEventInfo &info ) : void
ev System.Reflection.MonoEvent
info MonoEventInfo
Результат void
Пример #1
0
        internal static MonoEventInfo GetEventInfo(MonoEvent ev)
        {
            MonoEventInfo mei;

            MonoEventInfo.get_event_info(ev, out mei);
            return(mei);
        }
Пример #2
0
        public override MethodInfo[] GetOtherMethods(bool nonPublic)
        {
            MonoEventInfo info;

            MonoEventInfo.get_event_info(this, out info);

            if (nonPublic)
            {
                return(info.other_methods);
            }
            int num_public = 0;

            foreach (MethodInfo m in info.other_methods)
            {
                if (m.IsPublic)
                {
                    num_public++;
                }
            }
            if (num_public == info.other_methods.Length)
            {
                return(info.other_methods);
            }
            MethodInfo[] res = new MethodInfo [num_public];
            num_public = 0;
            foreach (MethodInfo m in info.other_methods)
            {
                if (m.IsPublic)
                {
                    res [num_public++] = m;
                }
            }
            return(res);
        }
Пример #3
0
        internal static MonoEventInfo GetEventInfo(MonoEvent ev)
        {
            MonoEventInfo result;

            MonoEventInfo.get_event_info(ev, out result);
            return(result);
        }
Пример #4
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);
        }