System.PropertyReflectionLibrary.GetPropertiesWithAttribute C# (CSharp) Method

GetPropertiesWithAttribute() private static method

private static GetPropertiesWithAttribute ( IReflect t, BindingFlags flags ) : IEnumerable
t IReflect
flags BindingFlags
return IEnumerable
        private static IEnumerable<PropertyInfo> GetPropertiesWithAttribute<T>(this IReflect t, BindingFlags flags)
            where T : Attribute =>
            t
                .GetProperties(flags)
                .Where(p => p.IsDefined(typeof(T)));
    }

Same methods

PropertyReflectionLibrary::GetPropertiesWithAttribute ( Type type ) : IEnumerable
PropertyReflectionLibrary::GetPropertiesWithAttribute ( object o ) : IEnumerable