예제 #1
0
 public bool TryGetAttribute <T>(out CustomAttribute attribute) where T : Attribute
 {
     if (field != null)
     {
         return(field.TryGetAttribute <T>(out attribute));
     }
     else if (property != null)
     {
         return(property.TryGetAttribute <T>(out attribute));
     }
     else
     {
         return(eventDef.TryGetAttribute <T>(out attribute));
     }
 }