public void DetiT(tipas duom) { var dd = new Mazgas <tipas>(duom, null); if (pr != null) { pb.Kitas = dd; pb = dd; } else { pr = dd; pb = dd; } }
public void DetiA(tipas duom) { pr = new Mazgas <tipas>(duom, pr); }
public void Pradzia() { esamas = pr; }
public void Kitas() { esamas = esamas.Kitas; }
public Modeliai() { pr = null; pb = null; esamas = null; }
public Mazgas(tipas duom, Mazgas <tipas> adr) { this.Duomenis = duom; this.Kitas = adr; }