Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created May 7, 2012 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tnngo2/2627640 to your computer and use it in GitHub Desktop.
Save tnngo2/2627640 to your computer and use it in GitHub Desktop.
using System;
namespace Theory10
{
public class FileWriter
{
string fn = null;
public static void Main()
{
FileWriter fw = new FileWriter();
Func<int, bool> methodCall = fw.CheckSomething;
methodCall(1);
}
public bool CheckSomething(int i)
{
Console.WriteLine(i);
Console.WriteLine("Check Something");
return true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment