1 Replies - 508 Views - Last Post: 18 August 2009 - 10:37 AM Rate Topic: -----

#1 reCoded  Icon User is offline

  • D.I.C Regular

Reputation: 6
  • View blog
  • Posts: 282
  • Joined: 25-February 08

Convert using LINQ

Posted 18 August 2009 - 08:13 AM

Hi All,

I need to take a List<Apples> and pass it into a method:

OrderStatus(Fruits[] fruits);

Can I do this using linq or is there another way of doing this?
Is This A Good Question/Topic? 0
  • +

Replies To: Convert using LINQ

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,957
  • Joined: 21-March 08

Re: Convert using LINQ

Posted 18 August 2009 - 10:37 AM

List<Apples> list = new List<Apples>();

OrderStatus(list.ToArray());



that should work.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1