Ejemplo n.º 1
0
 /// <summary>
 /// Initializes the static field Any
 /// </summary>
 static DelegateSelector()
 {
     Any = new DelegateSelector(_ => true);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes the static field Any
 /// </summary>
 static DelegateSelector()
 {
     Any = new DelegateSelector(_ => true);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Register or reregister an event handler.
 /// </summary>
 public void Subscribe(IHandleEvents eventHandler, ISelectEvents eventFilter = null)
 {
     eventFilter = eventFilter ?? DelegateSelector.Any;
     _eventHandlers[eventHandler] = eventFilter;
 }