Sunday, March 1, 2009

C# 4.0 New Extension Method Zip.

This new Extension method lives in  System.Linq namespace.

Doing by example we can easily understand what this Zip Extension method will do. so let me jump in there.

Now I am going to create two variables which holds the List of string  .

image

image

Now if  we loop through the  zipResult . here is the result which is printed on Console.

image

Thanks

SreenivasaRagavan.

No comments: