1.1 --- a/SharpLibEar/Event.cs Wed Aug 17 13:41:26 2016 +0200
1.2 +++ b/SharpLibEar/Event.cs Wed Aug 17 16:39:36 2016 +0200
1.3 @@ -38,6 +38,10 @@
1.4 private set { }
1.5 }
1.6
1.7 + public virtual string Brief()
1.8 + {
1.9 + return Name;
1.10 + }
1.11
1.12 protected Event()
1.13 {
1.14 @@ -72,6 +76,14 @@
1.15 {
1.16 return SharpLib.Utils.Reflection.GetDerivedTypes<Event>();
1.17 }
1.18 +
1.19 + //
1.20 + public override bool Equals(object obj)
1.21 + {
1.22 + //Default implementation assumes event are the same if types are the same
1.23 + bool res= obj.GetType() == GetType();
1.24 + return res;
1.25 + }
1.26 };
1.27
1.28 }
1.29 \ No newline at end of file