Добавлен GetHashCode метод для PlanesCollectionInfo

This commit is contained in:
Никита Потапов 2023-12-16 23:55:26 +04:00
parent ac3e17579d
commit a96c1b66e0

View File

@ -17,7 +17,15 @@ namespace ProjectStormtrooper
}
public bool Equals(PlanesCollectionInfo? other)
{
return Name.Equals(other.Name);
return Name == other.Name;
}
public override int GetHashCode()
{
return Name.GetHashCode();
}
public override string ToString()
{
return Name;
}
}
}