Yani var buna benzer yapıya sahip bir xml:C# Kısmi seri kaldırma
<MyObject>
<PropertyA>Value</PropertyA>
<PropertyB>Value</PropertyB>
<PropertyC>Value</PropertyC>
<ArrayOfOtherObject>
<OtherObject>
<PropertyX>Value</PropertyX>
<PropertyY>Value</PropertyY>
<PropertyZ>Value</PropertyZ>
</OtherObject>
<OtherObject>
<PropertyX>Value</PropertyX>
<PropertyY>Value</PropertyY>
<PropertyZ>Value</PropertyZ>
</OtherObject>
<OtherObject>
<PropertyX>Value</PropertyX>
<PropertyY>Value</PropertyY>
<PropertyZ>Value</PropertyZ>
</OtherObject>
</ArrayOfOtherObject>
</MyObject>
Ben ArrayOfOtherObject MyObject serisini ancak bir yolu var mı? Ve sonra daha sonra ihtiyaç duyulduğunda ArrayOfOtherObject tembel bir yük yapmak?
Genellikle XmlDeserialization kullanıyorum, ancak AFAIK her zaman her şeyi yükler.
Teşekkürler! ikili seri kaldırma işlevselliği tarafından tanınan Sen özel kurucu kullanabilirsiniz
, dürüst olmak gerekirse, ve serisi kaldırılmaya hepsi bu. –
+1 iyi soru Carlo – toddmo