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

@@ -6,15 +6,17 @@ namespace SabreTools.Models.Listxml
[XmlRoot("rom")]
public class Rom
{
[Required]
[XmlAttribute("name")]
public string Name { get; set; }
public string? Name { get; set; }
[XmlAttribute("bios")]
public string? Bios { get; set; }
/// <remarks>Numeric</remarks>
[Required]
[XmlAttribute("size")]
public string Size { get; set; }
public string? Size { get; set; }
[XmlAttribute("crc")]
public string? CRC { get; set; }