一部のXMLをC#クラスとして表現する方法がわかりません。このxmlを適切にマップする方法について誰かが何か提案がありますか?これが私の試みです:
<authenticationResponse>
<Accounts>
<AccountId>1</AccountId>
<AccountId>5</AccountId>
</Accounts>
</authenticationResponse>
public class authenticationResponse
{
[XmlElement("Accounts")]
[DataMember]
public List<Account> Accounts { get; set; }
}
public class Account
{
public long id { get; set; }
}