Deserialize Class containing an array of another class?

ZenMusic

New member
Joined
Jun 30, 2021
Messages
1
Programming Experience
10+
Is there a way to deserialize a Class that contains an array of another class.

Examples

Recipe with Ingredients
Client with Addresses

my specific need is:
Flight Plan with Waypoints

I'm just asking before I dive into parsing it out and filling the classes in my code.
thanks
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
4,467
Location
Sydney, Australia
Programming Experience
10+
It should work without issue. Start by defining your classes and try serialising instances. Once the serialisation works as expected, deserialisation will work too. I'd probably suggest simple classes for initial testing, e.g. one string property each.
 
Top Bottom