A
Andrew
In both case, using Activator.CreateInstance or new, except for the
different approach and difference "parameter" required, the final
result should be the same, a specific object type ready to be used
along with its method and function. Isn't it?
Supposing a sort of "Initialize" method of a super class that contain
for instance 25 vars for 25 different subclasses and in this
Inizitialize method I create a new instance for every class, doesn't
this waste memory or resource?
Thanks
Andrea
different approach and difference "parameter" required, the final
result should be the same, a specific object type ready to be used
along with its method and function. Isn't it?
Supposing a sort of "Initialize" method of a super class that contain
for instance 25 vars for 25 different subclasses and in this
Inizitialize method I create a new instance for every class, doesn't
this waste memory or resource?
Thanks
Andrea