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