mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Create Required attribute and tag properties
This commit is contained in:
@@ -6,8 +6,9 @@ namespace SabreTools.Models.SoftwareList
|
||||
[XmlRoot("software")]
|
||||
public class Software
|
||||
{
|
||||
[Required]
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
[XmlAttribute("cloneof")]
|
||||
public string? CloneOf { get; set; }
|
||||
@@ -16,14 +17,17 @@ namespace SabreTools.Models.SoftwareList
|
||||
[XmlAttribute("supported")]
|
||||
public string? Supported { get; set; }
|
||||
|
||||
[Required]
|
||||
[XmlElement("description")]
|
||||
public string Description { get; set; }
|
||||
public string? Description { get; set; }
|
||||
|
||||
[Required]
|
||||
[XmlElement("year")]
|
||||
public string Year { get; set; }
|
||||
public string? Year { get; set; }
|
||||
|
||||
[Required]
|
||||
[XmlElement("publisher")]
|
||||
public string Publisher { get; set; }
|
||||
public string? Publisher { get; set; }
|
||||
|
||||
[XmlElement("notes")]
|
||||
public string? Notes { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user