Добавлен GetHashCode метод для PlanesCollectionInfo
This commit is contained in:
parent
ac3e17579d
commit
a96c1b66e0
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user