mirror of
https://github.com/bvanroll/cs-oo-project.git
synced 2025-08-30 04:22:42 +00:00
ui nog wa aanpasse en we zijn gucci
This commit is contained in:
@@ -35,8 +35,15 @@ namespace Globals.classes
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
Person p = (Person)obj;
|
||||
return this.Id == p.Id;
|
||||
try
|
||||
{
|
||||
|
||||
Person p = (Person)obj;
|
||||
return this.Id == p.Id;
|
||||
} catch (Exception e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
|
Reference in New Issue
Block a user