Last post Jan 22, 2011 02:34 AM by ramanselva
Sep 21, 2010 08:39 PM|yoftahem|LINK
I am Trying to deserialize an xml file and loop through the deserialzed objects. Here is my code:
And here is How i am trying to access it implementing IEnumerable:
But i am getting the error:
To be XML serializable, types which inherit from IEnumerable must have an implementation of Add(System.Object) at all levels of their inheritance hierarchy. Departments does not implement Add(System.Object).
I havent been able to figure it out.
Thank you in advance!
xml .Net C#
Jan 22, 2011 02:34 AM|ramanselva|LINK
Here there is a work around by using .Net 3.x dll..give it a whirl!!!