public void CyclicalObject() { var serializer = new JsonSerializer(); var a = new CyclicalObject_Class(); a.A = a; string result = serializer.Serialize(a); }
public void CocyclicalObjects() { var serializer = new JsonSerializer(); var a = new CyclicalObject_Class(); var b = new CyclicalObject_Class2(); a.B = b; b.A = a; string result = serializer.Serialize(a); }