allisonbanana
New Member
Is it possible to get RestSharp to deserialize this Xml snippet, into a single class, instead of two classes?\[code\]<shippingInfo> <shippingServiceCost currencyId="AUD">58.02</shippingServiceCost> <shippingType>Flat</shippingType> <shipToLocations>Worldwide</shipToLocations></shippingInfo>\[/code\]Notice the first element \[code\]shippingServiceCost\[/code\] ? it has an attribute there. Normally, I would just create a child class called \[code\]ShippingServiceCost\[/code\] and add two properties in there: \[code\]CurrentId\[/code\] and \[code\]Value\[/code\].But it it possible to have the CurrencyId value in a property, in the main class \[code\]ShippingInfo\[/code\] ?