G
Gabriel Hautclocq
Guest
Thanks for your reply. This is a code sample, I actually need to keep the code in the private set. I try to do some lazy instantiation so that when an object is instantiated, its object properties aren't until accessed. But as the properties get evaluated during the execution of the constructor, the lazy instantiation does not work. About the circular reference issue: Say we have a class Company with a property Director, and a class Director with a property Company. To me it seems natural to do this way. However there is a circular reference, and it's dangerous (for example for serialization) which leads me to think that there must be a better way to do this without a circular reference. I just can't find how. Any idea?
Continue reading...
Continue reading...