O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Serializing Objects with Circular References

Circular references usually cause the most trouble for memory algorithms. You might be familiar with circular references from table calculations. For example, they occur when cell A references cell B, cell B references cell C, and cell C references cell A (which is not allowed in table calculations). However, the .NET Framework does permit circular references in objects. Going back to this chapter’s example, such references can easily occur, because it’s likely that person A considers person B a friend and person B considers person A a friend as well.

The example that follows shows the usual effects of circular references.

Companion Content

Open the corresponding solution (.sln), which you can find in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required