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
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati