I have a class that currently has several methods that take integer parameters. These integers map to operations that the application can perform. I\'d like to make the clas
Keep your original version (non-generic version) and create a generic version of it.
Then call the generic version from your non-generic version.
void Main()
{
DoSomething(2);
DoSomething(EnumValue);
}
public void DoSomething(int test) {
DoSomething(test);
}
// Define other methods and classes here
public void DoSomething(T test) {
Console.WriteLine(test);
}