fBaseXtensions.Behaviors.CharacterControl.HeroInfo.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
            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);
                }
            }