コード例 #1
0
        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()));
        }
コード例 #2
0
 public IHaveToken <T> Exists <T>(IDiagInfo diagInfo, Func <IEnumerable <T> > srcFunc)
 => reg.Exists(diagInfo, srcFunc);