I have a Labview interop assembly
which wants string[* ]
, int[* ]
and customType[*]
for various structs and methods.
For example, this is the declaration of a struct in the metadata:
public struct AppImage__32Properties
{
...
public FPGA__32Properties[] fPGA__32Properties;
...}
fPGA__32Properties is an array of struct.
Now I want to assign to it an empty array of the same type (Its instance is not initialized) and then proceed with filling its fields.
AppInfoDummy[0].appImage__32Properties.fPGA__32Properties =
new FPGA__32Properties[1];
but it results in
"Cannot implicitly convert type 'DeployImage_RAD.FPGA_32Properties[]' to DeployImage_RAD.FPGA_32Properties[*]".
I have the same problem with other struct
, int and string arrays
of type [*]
from that interop
assembly.
Apparently someType[*]
is an array which has its starting index somewhere else than zero. ( What does System.Double[*] mean) and there is a way to access it values. But how do I assign a value to it?
BTW: I worked on this project in Visual Studio 2012 Profession before and this problem did not occur. Now I use Visual Studio 2015 Prof.