private static void GenOlmayanListe() { Liste lst = new Liste(); lst.ekle(10); lst.ekle("Ahmet"); lst.ekle(new System.Data.SqlClient.SqlConnection()); Console.WriteLine(ListeTopla(lst)); }
private static void GenListe() { Liste <int> listem = new Liste <int>(); listem.ekle(5); listem.ekle(6); Console.WriteLine(GenListTopla(listem)); }
public static int ListeTopla(Liste a) { return((int)a[0] + (int)a[1]); }
public static int GenListTopla(Liste <int> b) { return(b[0] + b[1]); }