internal static int Count <T>(CountFunc <T> countFunc, T param, CountArguments arguments) { using (var filter = QueryArguments.ToNativeHandle(arguments)) { countFunc(param, filter, out var count).ThrowIfError("Failed to query count"); return(count); } }
internal static int Count(CountFunc countFunc, string filter) { return(Count(countFunc, new CountArguments { FilterExpression = filter })); }