Hi guys, I having a little trouble getting reflection to work for primitive types in C#. What I want is the following: object ob = (int)0; // but I want a generic code for all types I tried Wiki Link ...
It should be OK, right? Directly, we can invoke bar() on an instance of Blah using a short parameter because the short can be widened to an int. Reflectively, we can invoke bar() by passing a Short in ...