static void Main(string[] args) { //int[] tal = new int[] { 5, 1, 4, 5, 3 }; //int[] r = System.Array.FindAll(tal, F); //Gem(6, MinF); Maskine m = new Maskine(); m.LogMetode = Console.WriteLine; m.LogMetode += MinLogTilConsole; m.Start(); m.Stop(); }
static void Main(string[] args) { List <int> lst = new List <int> { 5, 1, 7, 1, 8, 3, 9 }; //var res = lst.Where(Min); var res = lst.Where(i => i < 5); Maskine m = new Maskine(); //m.LogDelegate += F; //m.LogDelegate += C; //m.LogDelegate += R; //m.LogDelegate += (string txt) => { Console.WriteLine(txt); }; m.LogDelegate += txt => Console.WriteLine(txt); m.Start(); m.S**t(); }