C# Querying With LINQ Query Operators Quantifiers

Ken Stone
Ken Stone
29,130 Points

If not contains sparrow then add sparrow

            var sparrow = new Bird { Name = "Sparrow", Color = "Brown" };

            if (!birds.Contains(sparrow))
            {
                birds.Add(sparrow);
            }