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
So... why not use simple inheritance? Like:
class MyGenericClass { } class MyGenericClass : MyGenericClass { }
This way you can write both ways:
var X = new MyGenericClass(); var Y = new MyGenericClass(); // Is now MyGenericClass