Strikeeaglechase
Cast value's in object[] to type based on result from method.GetParameters
Ultimately just checking if each paramater is an instance of intwrapper and if it is getting the internal value will be probably what im left with, but I was hoping for something a bit more generic
9 replies
Cast value's in object[] to type based on result from method.GetParameters
I was hoping for a generic solution as the code here is used for a lot of different methods with different signatures, and sometimes the value would be a raw int and sometimes would be wrapped
9 replies
Cast value's in object[] to type based on result from method.GetParameters
In the actual code it basically is a situation where a user can decide to provide a constant int, or a "GlobalVariable", which I want to evaulate at the time invoke is called, which is what IntWrapper is representing here
9 replies