Create Required attribute and tag properties

This commit is contained in:
Matt Nadareski
2023-08-10 12:09:29 -04:00
parent 1557882fe1
commit fb81fd0243
89 changed files with 316 additions and 155 deletions

View File

@@ -13,12 +13,13 @@ namespace SabreTools.Models.Listxml
[XmlAttribute("debug")]
public string? Debug { get; set; }
[Required]
[XmlAttribute("mameconfig")]
public string MameConfig { get; set; }
public string? MameConfig { get; set; }
[XmlElement("machine", typeof(Machine))]
[XmlElement("game", typeof(Game))]
public GameBase[] Game { get; set; }
public GameBase[]? Game { get; set; }
#region DO NOT USE IN PRODUCTION