コード例 #1
0
ファイル: CustomHelpers.cs プロジェクト: davidbedok/oeprog1
 public static EdgeTypeAttribute getAttribute(EdgeTypeWithAttribute edgeTyoe)
 {
     return (EdgeTypeAttribute)Attribute.GetCustomAttribute(ForValue(edgeTyoe), typeof(EdgeTypeAttribute));
 }
コード例 #2
0
ファイル: CustomHelpers.cs プロジェクト: davidbedok/oeprog1
 public static MemberInfo ForValue(EdgeTypeWithAttribute edgeType)
 {
     return typeof(EdgeTypeWithAttribute).GetField(Enum.GetName(typeof(EdgeTypeWithAttribute), edgeType));
 }