vendredi 3 novembre 2017

Performance on calling methods from unassigned instance member

I am currently working with code that initializes a new unassigned instance with each method call from the same class:

new Dog().Woof();

Are there performance benefits to this or is is this bad design?

Aucun commentaire:

Enregistrer un commentaire