huangs3
asked on
C#: what is the operator => doing?
Hi Experts:
I saw a section of C# code:
************************** ********** ********** ********** ********** ********** ********** *
System.Threading.ThreadPoo l.QueueUse rWorkItem( (state) =>
{
System.Threading.Thread.Sl eep(3 * 1000);
Dispatcher.BeginInvoke(() => BusyNote.IsBusy = false); }
);
************************** ********** ********** ********** ********** ********** ********** **
Can anybody tell me what is the operator "=>" doing? and what is this section of code doing?
I know it is related to threading , but I don't understand the syntax involving "=>"
This section of code is from a SilverLight 4 application.
Thank you.
I saw a section of C# code:
**************************
System.Threading.ThreadPoo
{
System.Threading.Thread.Sl
Dispatcher.BeginInvoke(() => BusyNote.IsBusy = false); }
);
**************************
Can anybody tell me what is the operator "=>" doing? and what is this section of code doing?
I know it is related to threading , but I don't understand the syntax involving "=>"
This section of code is from a SilverLight 4 application.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER