Use DictionaryBase for setters

This commit is contained in:
Matt Nadareski
2024-03-05 02:20:12 -05:00
parent 539e4367e0
commit 2b2aa5aff8
47 changed files with 845 additions and 796 deletions

View File

@@ -101,6 +101,19 @@ namespace SabreTools.DatItems.Formats
return FieldManipulator.RemoveField(_internal, fieldName);
}
/// <inheritdoc/>
public override bool SetField(DatItemField datItemField, string value)
{
// Get the correct internal field name
string? fieldName = datItemField switch
{
_ => null,
};
// Set the field and return
return FieldManipulator.SetField(_internal, fieldName, value);
}
#endregion
}
}