System.Reflection.MonoEventInfo.GetEventInfo C# (CSharp) Method

GetEventInfo() static private method

static private GetEventInfo ( System.Reflection.MonoEvent ev ) : MonoEventInfo
ev System.Reflection.MonoEvent
return MonoEventInfo
		internal static MonoEventInfo GetEventInfo (MonoEvent ev)
		{
			MonoEventInfo mei;
			MonoEventInfo.get_event_info (ev, out mei);
			return mei;
		}
	}

Usage Example

Ejemplo n.º 1
0
        public override MethodInfo[] GetOtherMethods(bool nonPublic)
        {
            MonoEventInfo info = MonoEventInfo.GetEventInfo(this);

            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);
        }
All Usage Examples Of System.Reflection.MonoEventInfo::GetEventInfo