P
Peter Judge
Guest
I assume that the intent of a caller making Put() and Remove() calls into the registry is to modify the registry. Assuming valid data is passed in, anyone can modify the contents. I cannot assume that when a caller has a reference to a service def object and changes properties on that instance, that they intend to change the canonical values.. I think the right answer may be to return a new instance every time . But I'm concerned about performance of cloning (especially if there are deep/large object graphs)
Continue reading...
Continue reading...