mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 14:55:11 +00:00
Move common string-only to properties
This commit is contained in:
@@ -96,7 +96,7 @@ namespace SabreTools.Metadata.DatFiles
|
||||
{
|
||||
// Get the header strings
|
||||
string? name = Header.Name;
|
||||
string? description = Header.ReadString(Data.Models.Metadata.Header.DescriptionKey);
|
||||
string? description = Header.Description;
|
||||
string? date = Header.ReadString(Data.Models.Metadata.Header.DateKey);
|
||||
|
||||
// If the description is defined but not the name, set the name from the description
|
||||
@@ -130,7 +130,7 @@ namespace SabreTools.Metadata.DatFiles
|
||||
|
||||
// Set the fields back
|
||||
Header.Name = name;
|
||||
Header.Write<string?>(Data.Models.Metadata.Header.DescriptionKey, description);
|
||||
Header.Description = description;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user