public static bool DefaultContains(SelectableSource source, Statement template)
        {
            StatementExistsSink sink   = new StatementExistsSink();
            SelectFilter        filter = new SelectFilter(template);

            filter.Limit = 1;
            source.Select(filter, sink);
            return(sink.Exists);
        }
Example #2
0
		public static bool DefaultContains(SelectableSource source, Statement template) {
			StatementExistsSink sink = new StatementExistsSink();
			SelectFilter filter = new SelectFilter(template);
			filter.Limit = 1;
			source.Select(filter, sink);
			return sink.Exists;
		}