public T Odkolejkuj() { if (Dlugosc < 1) { return(default(T)); } T ret = Gorny.Element; Gorny = Gorny.Poprzedni; --Dlugosc; return(ret); }
public int Zakolejkuj(T element) { Gorny = new StosElement(element, Gorny); return(++Dlugosc); }
public StosElement(T Element, StosElement Poprzedni) { this.Element = Element; this.Poprzedni = Poprzedni; }