Published v0.10.2.0.
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
7 using System.Threading;
12 [KnownType("DerivedTypes")]
13 public abstract class Action: IComparable
15 protected abstract void DoExecute();
19 Console.WriteLine("Action executing: " + Brief());
24 //Get the name of this object action attribute
25 get { return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name; }
29 public virtual string Brief()
34 public int CompareTo(object obj)
37 return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name.CompareTo(obj.GetType());
40 private static IEnumerable<Type> DerivedTypes()
42 return SharpLib.Utils.Reflection.GetDerivedTypes<Action>();