Created
May 7, 2012 13:00
-
-
Save tnngo2/2627640 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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