[Bind] Added Enum.Obsolete property
authorthefiddler <stapostol@gmail.com>
Mon, 21 Jul 2014 14:02:56 +0000 (16:02 +0200)
committerthefiddler <stapostol@gmail.com>
Mon, 21 Jul 2014 14:02:56 +0000 (16:02 +0200)
Source/Bind/Structures/Enum.cs

index 0c105ec8b1bb7909895db5e6389606db9458efe2..d883d1fa6c8d2f8119c6994217907c9f7c4acaad 100644 (file)
@@ -69,6 +69,9 @@ namespace Bind.Structures
         {
             ConstantCollection.Add(constant.Name, constant);
         }
+
+        public string Obsolete { get; set; }
+        public bool IsObsolete { get { return !String.IsNullOrEmpty(Obsolete); } }
     }
 
     #endregion