Exemplo n.º 1
0
 private PropertyInfo GetPropertyWithAttribute <TAttribute>()
     where TAttribute : Attribute
 {
     return(InterfaceType.GetAllInheritedPropertiesFromInterface()
            .FirstOrDefault(x => x.HasAttribute <TAttribute>(true)));
 }