Tuesday 5 November 2013

C# 5 New Features

 

Asynchronous Programming in C# 5

 

image

 

 

image

 

 

Demo of Legacy Synchronous programming method in C#

 

 

image

 

 

image

 

 

 

 

Demo of Old Asynchronous programming method in C#

 

Here, Synchronization Context is used to update any UI elements in asynchronous programming method.

 

image

 

 

 

 

image

 

 

image

 

 

Demo of new Asynchronous programming method in C# 5

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

Adding TASK Class handler to perform this operation in clean and simpler

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

 

 

 

 

 

 

 

 

Blogger Labels: Features,Asynchronous,Demo,Legacy,Synchronous,method,Here,Synchronization,Context,TASK,Class,handler

No comments:

Post a Comment