private static void PrintResults(DocumentSet docs) { if (docs.GetEnumerable().Any()) { foreach (var doc in docs.GetEnumerable()) { Console.WriteLine(@$ "Document {doc}"); } } else { Console.WriteLine(@$ "No document found"); } }
private static void PrintResults(DocumentSet docs) { Console.WriteLine(docs.GetEnumerable().Any() ? string.Join(" , ", docs.GetEnumerable()) : $"No document found"); }