Супер готовая последняя лаба 8 :)

This commit is contained in:
Extrimal 2023-12-22 19:53:57 +03:00
parent 168c971da1
commit 3c08c1472f

View File

@ -17,7 +17,10 @@ namespace AircraftCarrier.Generics
}
public bool Equals(AircraftsCollectionInfo? other)
{
return Name == other.Name;
if (ReferenceEquals(other, null))
return false;
return Name.Equals(other.Name);
}
public override int GetHashCode()
{