예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Version?.GetHashCode() ?? 0) * 397) ^ (SpecialVersion?.GetHashCode() ?? 0));
     }
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hashCode = Version.GetHashCode();

            if (SpecialVersion != null)
            {
                hashCode = hashCode * 4567 + SpecialVersion.GetHashCode();
            }

            return(hashCode);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int hashCode = Version.GetHashCode();

            if (SpecialVersion != null)
            {
                hashCode = hashCode * 4567 + SpecialVersion.GetHashCode();
            }
            if (PackageReleaseVersion != 0)
            {
                hashCode = hashCode * 123 + PackageReleaseVersion.GetHashCode();
            }

            return(hashCode);
        }