Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
A C# source code file I am hoping to use in a project of my own has an array definition that begins with the following code:

<br />
stf.ParseBlock(new STFReader.TokenProcessor[] {<br />
    new STFReader.TokenProcessor("eventtypelocation", ()=>{ stf.SkipBlock();  }),<br />


What does the "()=>" mean? I've never seen that construct before.

Thanks very much!

RobR
Posted

It is a lambda expression, a new construct in c# 3.0.
Just look it up on msdn.
 
Share this answer
 
A lambda expression is an anonymous function that can contain expressions and statements, and can be used to create delegates or expression tree types.
from MSDN
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900