Ejemplo n.º 1
0
 public bool Equals(LyricTemplate other)
 {
     return(Equals(TopText, other.TopText) &&
            Equals(MainText, other.MainText) &&
            Equals(BottomText, other.BottomText) &&
            Equals(TranslateText, other.TranslateText) &&
            TranslateTextColor.Equals(other.TranslateTextColor) &&
            Scale.Equals(other.Scale));
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = TopText != null?TopText.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (MainText != null ? MainText.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (BottomText != null ? BottomText.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (TranslateText != null ? TranslateText.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ TranslateTextColor.GetHashCode();
                hashCode = (hashCode * 397) ^ Scale.GetHashCode();
                return(hashCode);
            }
        }