예제 #1
0
파일: XLStyle.cs 프로젝트: zxcvas/ClosedXML
 public override int GetHashCode()
 {
     return(Font.GetHashCode()
            ^ Fill.GetHashCode()
            ^ Border.GetHashCode()
            ^ NumberFormat.GetHashCode()
            ^ Alignment.GetHashCode()
            ^ Protection.GetHashCode());
 }
예제 #2
0
        public override int GetHashCode()
        {
            var hashCode = -476701294;

            hashCode = hashCode * -1521134295 + Alignment.GetHashCode();
            hashCode = hashCode * -1521134295 + Border.GetHashCode();
            hashCode = hashCode * -1521134295 + Fill.GetHashCode();
            hashCode = hashCode * -1521134295 + Font.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberFormat.GetHashCode();
            hashCode = hashCode * -1521134295 + Protection.GetHashCode();
            return(hashCode);
        }
예제 #3
0
        public override int GetHashCode()
        {
            var hashCode = 428549002;

            hashCode = hashCode * -1521134295 + Font.GetHashCode();
            hashCode = hashCode * -1521134295 + Fill.GetHashCode();
            hashCode = hashCode * -1521134295 + Border.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberFormat.GetHashCode();
            if (Alignment != null)
            {
                hashCode = hashCode * -1521134295 + Alignment.GetHashCode();
            }
            return(hashCode);
        }
예제 #4
0
        public override int GetHashCode()
        {
            var hashCode = -476701294;

            hashCode = hashCode * -1521134295 + Alignment.GetHashCode();
            hashCode = hashCode * -1521134295 + Border.GetHashCode();
            hashCode = hashCode * -1521134295 + Fill.GetHashCode();
            hashCode = hashCode * -1521134295 + Font.GetHashCode();
            hashCode = hashCode * -1521134295 + IncludeQuotePrefix.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberFormat.GetHashCode();
            hashCode = hashCode * -1521134295 + Protection.GetHashCode();
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? DefaultName.GetHashCode());
            return(hashCode);
        }