Closed sn4k3 closed 1 year ago
This is working for me. Maybe you can post some more code to help reproduce the problem.
public void Roundtrip()
{
var expected = new LayerDefinition
{
Layers = new List<LayerData>
{
new LayerData(),
new LayerData()
}.ToArray()
};
var actual = Roundtrip(expected);
Assert.AreEqual(expected.Layers.Length, actual.Layers.Length);
Assert.IsNotNull(actual.Layers[0]);
Assert.IsNotNull(actual.Layers[1]);
}
Please reopen if this is still an issue.
With
class LayerDefinition
on deserialize, the arrayLayerData
comes with correct size (LayersCount) but all entries are nulled. Does it require a List instead of array?