Skip to content

Instantly share code, notes, and snippets.

@Itslet
Created Oct 28, 2010
Embed
What would you like to do?
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();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment