public bool NotifyWithFunction(int id)
            {
                bool createdArg = false;

                SomeEvent.Raise(this, () => { createdArg = true; return(new SomeEventArgs(id)); });

                return(createdArg);
            }
Example #2
0
 public void DoSomething()
 {
     SomeEvent.Raise(this);
 }
 public void Notify(int id)
 {
     SomeEvent.Raise(this, new SomeEventArgs(id));
 }
 public void Fire()
 {
     SomeEvent.Raise(this);
 }