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:
@@ -8,8 +8,9 @@ namespace SabreTools.Models.Logiqx
|
||||
/// </summary>
|
||||
public abstract class GameBase
|
||||
{
|
||||
[Required]
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
[XmlAttribute("sourcefile")]
|
||||
public string? SourceFile { get; set; }
|
||||
@@ -56,8 +57,9 @@ namespace SabreTools.Models.Logiqx
|
||||
[XmlElement("comment")]
|
||||
public string[]? Comment { get; set; }
|
||||
|
||||
[Required]
|
||||
[XmlElement("description")]
|
||||
public string Description { get; set; }
|
||||
public string? Description { get; set; }
|
||||
|
||||
[XmlElement("year")]
|
||||
public string? Year { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user