Microsoft.ProjectOxford.Emotion.Contract.Scores.Equals C# (CSharp) 메소드

Equals() 공개 메소드

public Equals ( object o ) : bool
o object
리턴 bool
        public override bool Equals(object o)
        {
            if (o == null) return false;

            var other = o as Scores;
            if (other == null) return false;

            return this.Anger == other.Anger &&
                this.Disgust == other.Disgust &&
                this.Fear == other.Fear &&
                this.Happiness == other.Happiness &&
                this.Neutral == other.Neutral &&
                this.Sadness == other.Sadness &&
                this.Surprise == other.Surprise;
        }