author | StephaneLenclud |
Mon, 25 Jul 2016 17:14:45 +0200 | |
changeset 217 | 94f91d446339 |
child 223 | f6272f65d8fc |
permissions | -rw-r--r-- |
1 //
3 using System.Runtime.Serialization;
6 namespace SharpLib.Ear
7 {
8 [DataContract]
9 public abstract class ActionCallback : Action
10 {
11 public delegate void Delegate();
13 private readonly Delegate iCallback;
15 public ActionCallback(Delegate aCallback = null)
16 {
17 iCallback = aCallback;
18 }
20 public override void Execute()
21 {
22 if (iCallback != null)
23 {
24 iCallback.Invoke();
25 }
26 }
27 }
29 }