Geeks With Blogs
Dheeman Dutta Just Another Blog..... May 2009 Entries
Usng List.Exists<>

List ss = new List();

ss.Add(1);

ss.Add(3);

ss.Add(5);

ss.ForEach(delegate(int x)

{ if (x < 4) Console.WriteLine(x); });

 Console.ReadKey();

Also checked out that this is probably the best in compared to Foreach and For loops

 

Cheers

Posted On Sunday, May 17, 2009 10:39 PM

Copyright © Dheeman Dutta | Powered by: GeeksWithBlogs.net