public static IHaveToken <T1> Exists <T1>(this IRegister register, Expression <Func <IEnumerable <T1> > > srcFunc, [CallerFilePath] string file = "", [CallerLineNumber] int line = 0, [CallerMemberName] string member = "") { var diag = DiagInfoExpressionFactory.CreateDiag(file, line, member, srcFunc); return(register.Exists(diag, srcFunc.Compile())); }
public IHaveToken <T> Exists <T>(IDiagInfo diagInfo, Func <IEnumerable <T> > srcFunc) => reg.Exists(diagInfo, srcFunc);