public override bool Equals(object obj)
{
var person = obj as Person;
if (person == null)
{
return false;
}
if (person.Name != this.Name)
{
return false;
}
if (!Object.Equals(person.Birthdate, this.Birthdate))
{
return false;
}
if (!Object.Equals(person.Deathdate, this.Deathdate))
{
return false;
}
return true;
}