Suppose we have 3 classes:
Location, Contact, PhoneNumber Classes.
In the Place class, I want to have the Contact class, but it's better to keep the PhoneNumber class in the Contact class. Thus, in the Place class it is more logical to reach PhoneNumber, first getting the Contact object, then PhoneNumber in the Contact object.
If I often need to get the PhoneNumber object from a place object, does it save the PhoneNumber class in the Contact class (Place.Contact.PhoneNumber) instead of directly inserting this object into the Place class (Place.Contact) to cause performance issues?
Why I ask this question is that such coverage problems have many performance effects in JavaScript. Is it worth it being so paranoid about variable capabilities - performance relationships in C #?
Thanks.
source
share