in that code Code (CSharp): public class Item { public bool Bought, Selected; public int Price; public string Name; public ShopItem(bool bought, bool selected, int price, string name) { Bought = bought; Selected = selected; Price = price; Name = name; } } i hace that error " CS1520: class,struct, or interface method must have a return type" on that line : Code (CSharp): public ShopItem(bool bought, bool selected, int price, string name)
just change public class Item to public class ShopItem or ShopItem(bool bought, bool selected, int price, string name) to Item(bool bought, bool selected, int price, string name)