Ok, I call the dll interop, which I do not have access to. Here is the pseudo code:
dynamic myVariable = null; firstInteropMethod(ref myVariable); secondInteropMethod(myVariable);
Method signatures for two methods:
firstInteropMethod(ref object someObject); secondInteropMethod(object someObject);
The expected value is a double definition array.
double[,]
Now the fun part. My source code gets the wrong results, but no errors. However, this code:
firstInteropMethod(ref myVariable); secondInteropMethod((double[,]) myVariable);
It gives the expected results.
Using the clock and application types, I determined that nothing changes between the two calls, what gives? Why would there be a difference and what is the difference?
source share