/// <summary> /// Creates the handlers link. /// </summary> /// <param name="routedEvent">The routed event.</param> /// <param name="handlers">The handlers.</param> /// <returns>System.Int32.</returns> internal int CreateHandlersLink(RoutedEvent routedEvent, RoutedEventHandlerInfoList handlers) { var item = new ClassHandlers(); item.RoutedEvent = routedEvent; item.Handlers = handlers; item.HasSelfHandlers = false; this.eventHandlersList.Add(item); return this.eventHandlersList.Count - 1; }
/// <summary> /// Equalses the specified class handlers. /// </summary> /// <param name="classHandlers">The class handlers.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public bool Equals(ClassHandlers classHandlers) { return (classHandlers.RoutedEvent == this.RoutedEvent) && (classHandlers.Handlers == this.Handlers); }