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
Print | posted on Sunday, May 17, 2009 10:39 PM

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: