Advertisement
Iv555

Untitled

Aug 6th, 2022
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. using System.Xml.Serialization;
  2.  
  3. namespace Footballers.DataProcessor.ExportDto
  4. {
  5. [XmlType("Coach")]
  6. public class CoachOutputModel
  7. {
  8. [XmlAttribute("FootballersCount")]
  9. public int FootballersCount { get; set; }
  10.  
  11. [XmlElement("CoachName")]
  12. public string CoachName { get; set; }
  13.  
  14. [XmlArray("Footballers")]
  15. public FootballerOfCoachOutputModel[] Footballers { get; set; }
  16.  
  17. }
  18.  
  19. [XmlType("Footballer")]
  20. public class FootballerOfCoachOutputModel
  21. {
  22. [XmlElement("Name")]
  23. public string FootballerName { get; set; }
  24.  
  25. [XmlElement("Position")]
  26. public string PositionType { get; set; }
  27.  
  28. }
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement