public override bool Equals(object obj)
{
//Check for null and compare run-time types.
if (obj == null || GetType() != obj.GetType())
{
return false;
}
else
{
HeroInfo p = (HeroInfo)obj;
return
(Name == p.Name) &&
(Level == p.Level) &&
(Class == p.Class) &&
(ParagonLevel == p.ParagonLevel);
//&& (TimePlayed == p.TimePlayed);
}
}