I hereby claim:
- I am ajepst on github.
- I am ajepst (https://keybase.io/ajepst) on keybase.
- I have a public key whose fingerprint is D4A9 3A69 8DD4 3858 FF94 A1A6 90EC A1A7 D1DB BA1D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public static void LogMethod(string myText) | |
{ | |
var modifiedText = "Error: "; | |
System.Console.WriteLine(modifiedText + myText); | |
} |
delegate void MyDel(string x); |
MyDel myLogger = LogMethod; |
myLogger("Hi this is a message from your friendly delegate!"); |
public void DoStuff(string message, Del logThing) | |
{ | |
myLogger(message); | |
// do other stuff | |
} | |
DoStuff(“hello world”, myLogger); |
Action<string> q = x => System.Console.WriteLine("Error: " + x); |
q(“my message”); |
public void DoStuff(string message, Func<string> logThing) | |
{ | |
myLogger(message); | |
// do other stuff | |
} | |
DoStuff("hello world", q); |