Sep 19 2005
Sick and Tired
My boy is sick and laying in the comfy chair trying to sleep. I just implimented nested anonymous methods to do UI calls for a thrown event from a different thread. *sighs* at 2am that hurts my brain.
_network.NewIncomingConnection += delegate(LocalNodeConnection c) { BeginInvoke((MethodInvoker) delegate() { network_NewIncomingConnection(c); });};
Ouch.
Sep 19, 2005 @ 09:12:20
I told you anonymous methods would work!
Sep 19, 2005 @ 11:02:42
LOL, I had no doubt.. but I was trying to figure out – at 1 in the morning – if this is where I should use them. I think it’s snazzy, if it works – I haven’t done more than compile it -, You can do in one line of text what it took several before. And you don’t have all of these stub like methods laying around. That was always annoying.
I wanted to come in and redo a progress dialog at work like that. But we’re not using .Net 2.0. Yet.