C Sharp (C#) - LINQ Fundamentals
Identify the error in this code snippet:
var items = new List<string> { "apple", "banana", "apple" };
var singleItem = items.Single(x => x == "apple");
Console.WriteLine(singleItem);Identify the error in this code snippet:
var items = new List<string> { "apple", "banana", "apple" };
var singleItem = items.Single(x => x == "apple");
Console.WriteLine(singleItem);15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions