System.FieldReflectionLibrary.GetFieldsWithAttribute C# (CSharp) Method

GetFieldsWithAttribute() private static method

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

Same methods

FieldReflectionLibrary::GetFieldsWithAttribute ( Type type ) : IEnumerable
FieldReflectionLibrary::GetFieldsWithAttribute ( object o ) : IEnumerable