示例#1
0
 public T GetAttribute <T>() where T : Attribute
 {
     if (PropertyDefinition != null)
     {
         return(PropertyDefinition.GetSingleAttribute <T>());
     }
     else
     {
         return(Type.GetSingleAttribute <T>());
     }
 }