Improved support for action enum properties.
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
7 using System.Threading;
12 [KnownType("DerivedTypes")]
13 public abstract class Action: IComparable
15 public abstract void Execute();
18 //Get the name of this object action attribute
19 get { return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name; }
23 public virtual string Brief()
28 public int CompareTo(object obj)
31 return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name.CompareTo(obj.GetType());
34 private static IEnumerable<Type> DerivedTypes()
36 return SharpLib.Utils.Reflection.GetDerivedTypes<Action>();