Is there a way to specify how many level the serializer will stop at?

Jan 20, 2010 at 9:09 AM

If I have an object structure that reference each other

for example

 

class Person
{   
   Car Car{ get; set; }

} 
class Car
{
     Wheel Wheel{ get; set; }
}
class Wheel
{
    WheelType WheelType { get; set; }
    Person BelongTo { get; set; }
}

 

So we have a nested structure and also a circular reference. Is there a way for me to tell the Serializer to stop at Car (level 2)? Or stop at Wheel? (level 3)

In short a level switch to tell the serializer when to stop?

 

 

 

Coordinator
Jan 22, 2010 at 10:27 PM

No.