Супер готовая последняя лаба 8 :)
This commit is contained in:
parent
168c971da1
commit
3c08c1472f
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user