Still it doesn't work. For example, I have a function written in C#:
void DoSomeThing(double[,] args)
{
...
}
I want my generated program to be able to call that function.
The problem is, when the function above is compiled by C# compiler,
the double[,] notation above is interpreted as double[0...,0...].
So, I need to somehow get a System.Type representing that
double[0...,0...] so that I can retrieve the constructor and Set
method from it, which will be called later.
Could you show me an example of calling that method?
I tried creating that type with the following:
* typeof(double[,]) - failed obviously
* typeof(double).MakeArrayType(2)
* Array.CreateInstance(typeof(float), new[] { 5, 5 }, new[] { 0,
0 }).GetType() - still no luck
* traversing the type's methods and importing the most appropriate one
But still in the disassembled code there's a call to double[,].
--
--
mono-cecil