Okay, I'm in a debate over whether or not static methods are a good idea in
a general domain class.
I'm personally not a fan of static methods but we seem to be using them to
load an object. For example if you have an Employee class rather then
instantiating an instance you call a static method 'GetEmployees' and it
returns a List of Employee objects.
I'm looking for what other people are doing and if you feel this is a good
or bad idea.
Thanks
a general domain class.
I'm personally not a fan of static methods but we seem to be using them to
load an object. For example if you have an Employee class rather then
instantiating an instance you call a static method 'GetEmployees' and it
returns a List of Employee objects.
I'm looking for what other people are doing and if you feel this is a good
or bad idea.
Thanks
Comment