.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Collections.Generic;

namespace It_sSomething
{
    class Item
    {
        public string Name { get; set; }
        public int Weight { get; set; }
    }
    class Weapon : Item
    {
        public int Damage { get; set; }
        public int LvlRestrict { get; set; }
    }

    public class Program
    {
        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);
        }
    }
}
;