EmotionalAppraisal.ActiveEmotion.Equals C# (CSharp) 메소드

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool
        public override bool Equals(object obj)
        {
            var em = obj as IEmotion;
            if (em == null)
                return false;

            if (CauseId != em.CauseId)
                return false;

            return new HashSet<string>(AppraisalVariables).SetEquals(em.AppraisalVariables);
        }