G
Guest
Hi All;
i have created a class that handles file input and output. one of the
methods loads data from a file then returns a hashtable filled with data
class. it takes in the file name and the class of the data stored in the
file. what i would like to know is:
is there a way to make the function take a generic class without having to
create a ton of overloaded versions of the method or using a switch statement
and replicating the code? (about 15 different classes would access the
function)
thanks for any help
i have created a class that handles file input and output. one of the
methods loads data from a file then returns a hashtable filled with data
class. it takes in the file name and the class of the data stored in the
file. what i would like to know is:
is there a way to make the function take a generic class without having to
create a ton of overloaded versions of the method or using a switch statement
and replicating the code? (about 15 different classes would access the
function)
thanks for any help