using System.Xml; using System.Xml.Serialization; namespace SabreTools.Models.SoftwareList { [XmlRoot("feature")] public class Feature { [Required] [XmlAttribute("name")] #if NET48 public string Name { get; set; } #else public string? Name { get; set; } #endif [XmlAttribute("value")] #if NET48 public string Value { get; set; } #else public string? Value { get; set; } #endif #region DO NOT USE IN PRODUCTION /// Should be empty [XmlAnyAttribute] #if NET48 public XmlAttribute[] ADDITIONAL_ATTRIBUTES { get; set; } #else public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; } #endif /// Should be empty [XmlAnyElement] #if NET48 public object[] ADDITIONAL_ELEMENTS { get; set; } #else public object[]? ADDITIONAL_ELEMENTS { get; set; } #endif #endregion } }