Reading this, I learned it was possible to allow a method to accept parameters of multiple types by making it a generic method. In the example, the following code is used wi
That is not possible. You can, however, define overloads for specific types:
public void test(string a, string arg); public void test(string a, Exception arg);
If those are part of a generic class, they will be preferred over the generic version of the method.