Example #1
0
 public void InvokeAllEvents()
 {
     PublicEvent?.Invoke();
     PrivateEvent?.Invoke();
     InternalEvent?.Invoke();
     ProtectedEvent?.Invoke();
     ProtectedInternalEvent?.Invoke();
 }
Example #2
0
 private void ProtectedEventHandler(ProtectedEvent e)
 {
     ProtectedEventHandlerInvokeCount++;
 }
 private void OnProtectedEvent(ProtectedEvent e)
 {
     ProtectedEventHandlerInvokeCount++;
 }
Example #4
0
 public void InvokeProtectedEvent()
 {
     ProtectedEvent?.Invoke(this, new ProtectedEventArgs());
 }