mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-25 08:15:15 +00:00
Change ItemType into concerete property
This commit is contained in:
@@ -8,20 +8,10 @@ namespace SabreTools.Data.Models.Metadata
|
||||
/// </summary>
|
||||
public class DatItem : DictionaryBase
|
||||
{
|
||||
#region Common Keys
|
||||
|
||||
public const string TypeKey = "_type";
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Quick accessor to item type, if it exists
|
||||
/// </summary>
|
||||
[JsonProperty("itemtype", DefaultValueHandling = DefaultValueHandling.Ignore), XmlElement("itemtype")]
|
||||
public ItemType? Type
|
||||
{
|
||||
get => ContainsKey(TypeKey) ? this[TypeKey] as ItemType? : null;
|
||||
set => this[TypeKey] = value;
|
||||
}
|
||||
public ItemType ItemType { get; protected set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user