mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Replace usages of Name field (nw)
This commit is contained in:
@@ -11,20 +11,6 @@ namespace SabreTools.DatItems.Formats
|
||||
[JsonObject("diskarea"), XmlRoot("diskarea")]
|
||||
public class DiskArea : DatItem
|
||||
{
|
||||
#region Fields
|
||||
|
||||
/// <summary>
|
||||
/// Name of the item
|
||||
/// </summary>
|
||||
[JsonProperty("name", DefaultValueHandling = DefaultValueHandling.Ignore), XmlElement("name")]
|
||||
public string? Name
|
||||
{
|
||||
get => _internal.ReadString(Models.Metadata.DiskArea.NameKey);
|
||||
set => _internal[Models.Metadata.DiskArea.NameKey] = value;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Accessors
|
||||
|
||||
/// <inheritdoc/>
|
||||
@@ -45,7 +31,7 @@ namespace SabreTools.DatItems.Formats
|
||||
_internal = new Models.Metadata.DiskArea();
|
||||
Machine = new Machine();
|
||||
|
||||
Name = string.Empty;
|
||||
SetName(string.Empty);
|
||||
ItemType = ItemType.DiskArea;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user