I pass the type name and some parameters from C # code to a navigation structure written in VB. The navigation structure looks for a type constructor that matches the parameters passed using Type.GetConstructor (Types ()). The constructor I'm looking for expects an array of integers - Integer () in vb. But it gets an array of System.Int32. I went so far as to try this:
System.Int32[] int32Array = IdList.ToArray();
int[] intArray = new int[int32Array.Length];
for (int i = 0; i < int32Array.Length; i++ )
{
intArray[i] = (int)int32Array[i];
}
And the VB code still sees System.Int32 on the other end, which means that it does not find the constructor.
Any ideas?
source
share