Esempio n. 1
0
        public bool Matches(MethodInfo method)
        {
            if (!method.HasReturn()) return false;
            if (method.ReturnType != typeof (bool)) return false;

            var format = method.DeriveFormat();
            var key = "returnValue";
            method.ReturnParameter.ForAttribute<AliasAsAttribute>(att => key = att.Alias);

            if (TemplateParser.GetSubstitutions(format).Contains(key)) return false;

            return true;
        }
Esempio n. 2
0
 public bool Matches(MethodInfo method)
 {
     return method.HasReturn() && method.ReturnType == typeof(bool) && !method.GetParameters().Any();
 }
Esempio n. 3
0
 public bool Matches(MethodInfo method)
 {
     return !method.HasReturn();
 }