I have a class that defines a CallRate type. I need to add the ability to create multiple instances of my class by reading the data from a file.
I added a static method to my class CallRate that returns a List<CallRate>
. Is it ok for a class to generate new instances of itself by calling one of its own constructors? It works, I just wonder if it's the proper thing to do.
Thank you, Paul
List<CallRates> cr =
CallRates.ProcessCallsFile(file);
edit: fixed typos.