using System.Collections.Generic;
public string Name { get; set; }
public int Weight { get; set; }
public int Damage { get; set; }
public int LvlRestrict { get; set; }
public static void Main()
List<Item> inventory = new List<Item>();
inventory.Add(new Weapon() { Name = "Dildak", Damage = 20, LvlRestrict = 1, Weight = 5 });
inventory.Add(new Weapon() { Name = "Sword", Damage = 45, LvlRestrict = 4, Weight = 2 });
foreach (Weapon i in inventory)
Console.WriteLine("Name: {0} Weight: {1} Damage: {2} Level Restriction: {3} ", i.Name, i.Weight, i.Damage, i.LvlRestrict);