Guest User

Untitled

a guest
Jun 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Concepts.ConsoleApp
  7. {
  8. class Program
  9. {
  10. /*
  11. Func<int, int, bool> kleinste = (a, b) => a < b;
  12. Func<string, string> ietsAnders = s => s.ToUpper();
  13. Expression<Func<int, int, bool>> f = (a, b) => a < b;
  14. Expression<Func<int, int, bool>> Where = (a, b) => a == b;
  15.  
  16. var fun = f.Compile();
  17. var heu = fun(4, 8);
  18.  
  19.  
  20. print(ietsAnders("blabla"));
  21. print(kleinsteGetal(16, 7).ToString());
  22. print(heu.ToString());
  23. Console.ReadKey();
  24. */
  25.  
  26. public static void print(string line)
  27. {
  28. Console.WriteLine(line);
  29.  
  30.  
  31. }
  32.  
  33.  
  34. public static bool kleinsteGetal(int x, int y)
  35. {
  36. //return false;
  37. if (x < y) return true;
  38. else return false;
  39. }
  40.  
  41. public static Func<int, int, bool> myDelegate = kleinsteGetal;
  42.  
  43.  
  44. static void Main(string[] args)
  45. {
  46.  
  47. var Lijst = new List<string>();
  48. Lijst.Where(x => x == "Ikbenhet");
  49.  
  50. var myStuff = new List<string>();
  51. myStuff.Add("VacuumCleaner");
  52. myStuff.Add("Laptop");
  53.  
  54.  
  55.  
  56. // print(myDelegate(7, 8).ToString());
  57. Console.ReadKey();
  58.  
  59. }
  60. }
  61. }
Add Comment
Please, Sign In to add comment