It's only 12pm and your mind is already in the gutter, tsk tsk. I believe it means an anonymous lambda function taking no parameters (otherwise there would be parameter variable names within the brackets).
On 3/16/09, Stephen Price <[email protected]> wrote: > Hi all, > I'm pretty sure this looks like a linq lamba expression but Google won't let > me search it so was wondering if anyone could point me to an explanation of > what () => means. > > To put it in context, I'm looking at the Silverlight unit testing framework > and there are lines like; > > EnqueCallback(() => Assert.AreEqual(9, thing.Value)); > > Or is it something to do with an anonymous delegate? > I'm not having any problems with it, its working, but was just wondering > what it means. :) > > thanks, > Stephen > p.s. Yes, () => looks like it could be a rude emoticon. :p > -------------------------------------------------------------------------------- > Support procedure: https://www.codify.com/lists/support > List address: [email protected] > Subscribe: [email protected] > Unsubscribe: [email protected] > List FAQ: http://www.codify.com/lists/ozsilverlight > Other lists you might want to join: http://www.codify.com/lists > > -- Sent from my mobile device -------------------------------------------------------------------------------- Support procedure: https://www.codify.com/lists/support List address: [email protected] Subscribe: [email protected] Unsubscribe: [email protected] List FAQ: http://www.codify.com/lists/ozsilverlight Other lists you might want to join: http://www.codify.com/lists
