.net - Deserialization of key value pair in XML to c# object -
I have XML as shown below. & lt; Device-array & gt; & Lt; Device & gt; & Lt; ID & gt; 8 & lt; / Id & gt; & Lt; Properties & gt; & Lt; PropKeyValuePair & gt; ... & lt; / PropKeyValuePair & gt; & Lt; PropKeyValuePair & gt; ... & lt; / PropKeyValuePair & gt; & Lt; / Properties & gt; & Lt; / Tools & gt; & Lt; Device & gt; ... & lt; / Tools & gt; & Lt; Device & gt; ... & lt; / Tools & gt; & Lt; / Device-array & gt; I plan to distribute it to the C # object so that it can be done faster. I just need an id area but I think there is an array required for class (properties) but how can I represent important value verb? [serialable] Public class SLV jioojone {[XML ("ID")] public string id {get; Set; } // Important value pairs entries here? } requires suggetions You can use LINQ in XML instead of Deserialization and just get what you need: ...