How can I make this method more general?
<p>I have this method called LoadToDictionary. It accepts a dictionary and a filepath. Currently, it would look something like this:
<code>void LoadToDictionary(Dictionary&lt;string, string&gt; dict, string filePath</code>. Then inside, it would have a lot of code to extract the contents of the file in filePath to a dictionary. I want to make it more general, so it could, say, take a dictionary with int's instead, and the ability to change the parsing code in the method. Should I mark this method and later override it? Is there any other way?</p>
