Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name1 != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Name1);
            }
            if (Name2 != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Name2);
            }
            if (Name3 != 0)
            {
                hash ^= Name3.GetHashCode();
            }
            if (Name4 != 0L)
            {
                hash ^= Name4.GetHashCode();
            }
            if (Name5 != 0)
            {
                hash ^= Name5.GetHashCode();
            }
            if (Name6 != 0UL)
            {
                hash ^= Name6.GetHashCode();
            }
            if (Name7 != false)
            {
                hash ^= Name7.GetHashCode();
            }
            if (Name8.Length != 0)
            {
                hash ^= Name8.GetHashCode();
            }
            hash ^= name9_.GetHashCode();
            hash ^= name10_.GetHashCode();
            hash ^= name11_.GetHashCode();
            hash ^= name12_.GetHashCode();
            hash ^= name13_.GetHashCode();
            hash ^= name14_.GetHashCode();
            hash ^= name15_.GetHashCode();
            hash ^= name16_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name1 != null ? Name1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name2 != null ? Name2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name3 != null ? Name3.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Course;
         hashCode = (hashCode * 397) ^ (Group != null ? Group.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         return(hashCode);
     }
 }