Exemplo n.º 1
0
 public static EdgeTypeAttribute getAttribute(EdgeTypeWithAttribute edgeTyoe)
 {
     return (EdgeTypeAttribute)Attribute.GetCustomAttribute(ForValue(edgeTyoe), typeof(EdgeTypeAttribute));
 }
Exemplo n.º 2
0
 public static MemberInfo ForValue(EdgeTypeWithAttribute edgeType)
 {
     return typeof(EdgeTypeWithAttribute).GetField(Enum.GetName(typeof(EdgeTypeWithAttribute), edgeType));
 }