Cuke4Nuke.Core.Hook.IsValidMethod C# (CSharp) Method

IsValidMethod() public static method

public static IsValidMethod ( MethodInfo method ) : bool
method System.Reflection.MethodInfo
return bool
        public static bool IsValidMethod(MethodInfo method)
        {
            bool hasAHookAttribute = GetHookAttributes(method).Length == 1;
            bool hasNoParameters = method.GetParameters().Length == 0;
            return hasAHookAttribute && hasNoParameters;
        }