コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (SizeUnit.Length != 0)
            {
                hash ^= SizeUnit.GetHashCode();
            }
            if (SizeContainer.Length != 0)
            {
                hash ^= SizeContainer.GetHashCode();
            }
            if (SizeShadow != 0)
            {
                hash ^= SizeShadow.GetHashCode();
            }
            if (SceneScale != 0F)
            {
                hash ^= SceneScale.GetHashCode();
            }
            if (ZoomSpeed != 0F)
            {
                hash ^= ZoomSpeed.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = PrintUnitsInHeader.GetHashCode();
         hashCode = (hashCode * 397) ^ PrintUnitsInContent.GetHashCode();
         hashCode = (hashCode * 397) ^ (SizeUnit != null ? SizeUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TimeUnit != null ? TimeUnit.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = PrintUnitsInHeader.GetHashCode();
         hashCode = (hashCode * 397) ^ PrintUnitsInContent.GetHashCode();
         hashCode = (hashCode * 397) ^ PrintZeroValuesInContent.GetHashCode();
         hashCode = (hashCode * 397) ^ (SizeUnit != null ? SizeUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TimeUnit != null ? TimeUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MaxParameterColumnWidth;
         return(hashCode);
     }
 }