그래서이 이와 유사한 구조를 가진 XML :C#을 일부 직렬화
<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>
나는 ArrayOfOtherObject을 MyObject를 직렬화하지만 할 수있는 방법이 있나요를? 그리고 나중에 필요할 때마다 ArrayOfOtherObject의 게으른로드를 수행합니까?
일반적으로 XmlDeserialization을 사용하지만 AFAIK는 항상 모든 것을로드합니다.
감사합니다. 바이너리 직렬화 기능을 인식 당신은 특별한 생성자를 사용할 수 있습니다
는, 솔직히 말해서, 및 역 직렬화 모든. –
+1 좋은 질문입니다. Carlo – toddmo