using System; using System.Collections.Generic; namespace Mod1Assignement { class Program { static void Main(String[] args) { List<int> aList = new List<int>(); aList.Add(1); aList.Add(2); aList.Add(3); IEnumerable<int> test = aList; //Getting error on "Contains" bool x = test.Contains(2); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)