Example #1
0
        public T Odkolejkuj()
        {
            if (Dlugosc < 1)
            {
                return(default(T));
            }

            T ret = Gorny.Element;

            Gorny = Gorny.Poprzedni;

            --Dlugosc;

            return(ret);
        }
Example #2
0
        public int Zakolejkuj(T element)
        {
            Gorny = new StosElement(element, Gorny);

            return(++Dlugosc);
        }
Example #3
0
 public StosElement(T Element, StosElement Poprzedni)
 {
     this.Element   = Element;
     this.Poprzedni = Poprzedni;
 }