Пример #1
0
 public bool IsFinderMethodFor(IObjectSpecImmutable spec)
 {
     if (!IsFinderMethod)
     {
         return(false);
     }
     if (ReturnSpec.IsCollection && ElementSpec.IsOfType(spec))
     {
         return(true);
     }
     return(ReturnSpec.IsOfType(spec));
 }
 public bool IsFinderMethodFor(IObjectSpecImmutable spec)
 {
     return(IsFinderMethod && (ReturnSpec.IsOfType(spec) || (ReturnSpec.IsCollection && ElementSpec.IsOfType(spec))));
 }