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