List<Shoe> shoeCloset = new List<Shoe>();
shoeCloset.Add(new Shoe()
{ Style = Style.Sneakers, Color = “Black” });
....
foreach (Shoe shoe in shoeCloset) {
...
}
shoeCloset.RemoveAt(4);
if (shoeCloset.Contains(secondShoe))..
Not like java, having many kinds of List, C# only have one, which is way more easier for developers like me to use. Thanks.
shoeCloset.Add(new Shoe()
{ Style = Style.Sneakers, Color = “Black” });
....
foreach (Shoe shoe in shoeCloset) {
...
}
shoeCloset.RemoveAt(4);
if (shoeCloset.Contains(secondShoe))..
Not like java, having many kinds of List, C# only have one, which is way more easier for developers like me to use. Thanks.
Comments
Post a Comment