Works:
[ProtoContract(ImplicitFields = ImplicitFields.AllPublic)]
public class ExcelData
{
public int[] DataObjects { get; set; }
}
Don't work:
[ProtoContract(ImplicitFields = ImplicitFields.AllPublic)]
public class ExcelData
{
public object[] DataObjects { get; set; }
}
My test:
[TestMethod]
public void ProtoWithObjectArray()
{
var ex = new ProtoBufServiceClient(baseUrl);
var res = ex.Get(new SelectWorksheetRange());
}
[ProtoContract(ImplicitFields = ImplicitFields.AllPublic)]
public class SelectWorksheetRange : IReturn<ExcelData>
{
}
I don't even see error, because test just finish at ex.Get without any information. How to debug this?