i wite ice file as
module M
{
struct A
{
string name;
};
["cs:collection"]sequence<A> AAA;
class B
{
AAA getA();
};
};
when i use slice2cs gernerate .cs file and want to compile.
the error occur
in
public sealed class AAAHelper
{
....
public static M.AAA read(IceInternal.BasicStream __is)
{
M.AAA __v;
{
int sz = __is.readSize();
__is.startSeq(sz, 1);
__v = new M.A(sz);
for(int __i = 0; __i < __v.Count; ++__i)
{
__v[__i].__read(__is);
__is.checkSeq();
__is.endElement();
}
}
return __v; }
}
....
}
"type M.A not define construcotr"
why?
i think that's bug.
M.AAA __v=new M.A(sz)???

Reply With Quote