It doesn't have much to do with LINQ, does it?
It's an anonymous function expressed with a lambda operator, as you said.
Other ways of writing this are:
var t = Task.Factory.StartNew(delegate() { DoAction(); });
See: http://msdn.microsoft.com/en-us/library/bb882516.aspx
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Cerebrus
Sent: Sunday, September 05, 2010 1:43 PM
To: DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting
Subject: [DotNetDevelopment] Re: System.Threading.Task
LInQ 101, fella !!
This is a LInQ expression. The empty parenthesis indicate that no parameters
are required for the expression to be evaluated and the "=>" is the (famous)
lambda operator.
On Sep 4, 3:48 pm, mandar <[email protected]> wrote:
> // C#
>
> var t = Task.Factory.StartNew( () => DoAction());
>
> what does " () => " means
>
> thanks in advance...