System.MethodReflectionLibrary.GetMethodsWithAttribute C# (CSharp) Méthode

GetMethodsWithAttribute() private static méthode

private static GetMethodsWithAttribute ( IReflect t, BindingFlags flags ) : IEnumerable
t IReflect
flags BindingFlags
Résultat IEnumerable
        private static IEnumerable<MethodInfo> GetMethodsWithAttribute<T>(this IReflect t, BindingFlags flags)
            where T : Attribute =>
            t
                .GetMethods(flags)
                .Where(p => p.IsDefined(typeof(T)));
    }

Same methods

MethodReflectionLibrary::GetMethodsWithAttribute ( Type type ) : IEnumerable
MethodReflectionLibrary::GetMethodsWithAttribute ( object o ) : IEnumerable