Problem generating proxies with 2-D arrays in CTP 1.5

We were migrating our code to CTP 1.5 when we came across a potential bug. When we initialized a 2-D array as a DataMember, the code fails to build:

Code Snippet

// This Does not build!

[DataMember()]

public int[,] test;


If we comment out the '[DataMember()]', the code builds but it won't work with the other services without that 2-D array.

On a related note, initializing the array as private and writing a public accessor (as a DataMember) also does not work:

Code Snippet

// This also doesn't build!

private int[,] t;

[DataMember()]

public int[,] Test

{

get { return t; }

set { t = value; }

}


commenting out the "set" function allows the code to compile, but again, it is still useless.

how can the situation be remedied?

[1091 byte] By [DerrickYu] at [2008-2-20]

Microsoft Robotics Studio

Site Classified