Question about serializing IEnumerable RRS feed

  • Question

  • Hello,

    I've been working on a silverlight project for about 5 months and today I realized I pass my WCF serialized object in the Form List<Car>, ObservableCollection<Airplane> .... what if I pass them in the IEnumerable<Car>,IEnumerable<Airplane> form? 

    Should it be better? Is It possible? If not, would it be better to pass a List then convert to ObservableColletion in Silverlight?




    Thursday, March 18, 2010 7:06 AM


  • ienumerable- does not provide a way to add or remove items  you would have to change to a list first  you would have change it

     to observeable collection.....so it really depends how you are planning to use this.....

    yes it you can use ienumerable just realize it is limited and it  is used with linq   

    Thursday, March 18, 2010 5:45 PM