Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Concepts.ConsoleApp
- {
- class Program
- {
- /*
- Func<int, int, bool> kleinste = (a, b) => a < b;
- Func<string, string> ietsAnders = s => s.ToUpper();
- Expression<Func<int, int, bool>> f = (a, b) => a < b;
- Expression<Func<int, int, bool>> Where = (a, b) => a == b;
- var fun = f.Compile();
- var heu = fun(4, 8);
- print(ietsAnders("blabla"));
- print(kleinsteGetal(16, 7).ToString());
- print(heu.ToString());
- Console.ReadKey();
- */
- public static void print(string line)
- {
- Console.WriteLine(line);
- }
- public static bool kleinsteGetal(int x, int y)
- {
- //return false;
- if (x < y) return true;
- else return false;
- }
- public static Func<int, int, bool> myDelegate = kleinsteGetal;
- static void Main(string[] args)
- {
- var Lijst = new List<string>();
- Lijst.Where(x => x == "Ikbenhet");
- var myStuff = new List<string>();
- myStuff.Add("VacuumCleaner");
- myStuff.Add("Laptop");
- // print(myDelegate(7, 8).ToString());
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment