public int GetEventId (FieldInfo Event) { for (int i = 0; i < Events.Count; i++) { FieldInfo field = Events [i]; if (field == Event) return i + GetBaseEventCount (); } return ((TypeInfo) Parent.Children [Base.Value]).GetEventId (Event); }