mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-24 15:55:05 +00:00
ModelBackedItem doesn't need to be equatable
This commit is contained in:
@@ -61,36 +61,6 @@ namespace SabreTools.Metadata.DatItems.Test
|
||||
/// <inheritdoc/>
|
||||
public override void SetName(string? name) => Name = name;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool Equals(ModelBackedItem? other)
|
||||
{
|
||||
// If the other item is null
|
||||
if (other is null)
|
||||
return false;
|
||||
|
||||
// If the type matches
|
||||
if (other is TestDatItem otherTestDatItem)
|
||||
return ((TestDatItemModel)_internal).Equals((TestDatItemModel)otherTestDatItem._internal);
|
||||
|
||||
// Everything else fails
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool Equals(ModelBackedItem<Data.Models.Metadata.DatItem>? other)
|
||||
{
|
||||
// If the other item is null
|
||||
if (other is null)
|
||||
return false;
|
||||
|
||||
// If the type matches
|
||||
if (other is TestDatItem otherTestDatItem)
|
||||
return ((TestDatItemModel)_internal).Equals((TestDatItemModel)otherTestDatItem._internal);
|
||||
|
||||
// Everything else fails
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool Equals(DatItem? other)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user