コード例 #1
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = toolState.GetHashCode();
                hashCode = (hashCode * 397) ^ selectionType.GetHashCode();
                hashCode = (hashCode * 397) ^ measureMode.GetHashCode();
                hashCode = (hashCode * 397) ^ measureFormat.GetHashCode();
                hashCode = (hashCode * 397) ^ selectedAnchorsContext.GetHashCode();

                return(hashCode);
            }
        }
コード例 #2
0
ファイル: HSSFClientAnchor.cs プロジェクト: ruo2012/Npoi.Core
 public override int GetHashCode()
 {
     return(Col1.GetHashCode() ^ Col2.GetHashCode() ^ Dx1.GetHashCode()
            ^ Dx2.GetHashCode() ^ Dy1.GetHashCode() ^ Dy2.GetHashCode()
            ^ Row1.GetHashCode() ^ Row2.GetHashCode() ^ AnchorType.GetHashCode());
 }