System.Reflection.MonoEvent.MonoEvent.GetOtherMethods C# (CSharp) Method

GetOtherMethods() public method

public GetOtherMethods ( bool nonPublic ) : System.Reflection.MethodInfo[]
nonPublic bool
return System.Reflection.MethodInfo[]
		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;
		}
#endif