I am very new to linq query with c#. I have a list of strings and I would like to get a new list or delete all double strings.
List<string> zipcodes = new List<string>();
zipcodes.Add("1234");
zipcodes.Add("1234");
zipcodes.Add("1234");
zipcodes.Add("4321");
zipcodes.Add("4321");
List<string> groupbyzipcodes =
(from zip in zipcodes
group zip by zip into newgroup
select newgroup.ToList());
cannot implicitly convert type
'System.collection.Generic.IEnumarable<System.Collections.Generic.List<string>'
to'System.collections.Generic.List<string>
. an explicit conversion exists (are you missing a cast?)