var countries = Application["CountryList"] as List
countries.Insert(0, new Country {CountryID = 0, Title = "Ülke"});
Application["CountryList"]'e de bir Country ekliyor.
Bunun yerine;
var countries = new List
countries.Add(new Country {CountryID = 0, Title = "Ülke"});
countries.AddRange(Application["CountryList"] as List
c# 3.x - List.Insert
Gönderen
pantepember
3 Aralık 2009 Perşembe
Etiketler: generic.list