Ejemplo n.º 1
0
 public static string GetDescription(this DependencyFlag flag)
 {
     DescriptionAttribute[] attribs = typeof(DependencyFlag).GetField(flag.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), false) as DescriptionAttribute[];
     if (attribs.Length > 0)
     {
         return(attribs[0].Description);
     }
     else
     {
         return(flag.ToString());
     }
 }
Ejemplo n.º 2
0
 public virtual void RaiseDependencyFlag(DependencyFlag flag)
 {
     DependencyRaisedEvent?.Invoke(flag);
 }