Just wondering if anyone knows how the XmlSerializer determines the order for deserializing any given object's properties.
Added info:
I have a class like this:
private bool _hasGaps = false;
public bool HasGaps
{
get { return _hasGaps; }
set
{
_hasGaps = value;
}
}
private List<GapInfo> _gaps;
public List<GapInfo> Gaps
{
get { return _gaps; }
set
{
_gaps = value;
}
}
I set a breakpoint in both Gaps setter and HasGaps setter, Gaps gets deserialized first.
More info
Here's what the XML looks like:
<Tube Id="3df08765-c4e7-4a87-a0ed-ec76169b47af" Name="Tube">
<HasGaps>false</HasGaps>
<Gaps />
</Tube>