Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ProcessingCallback.Length != 0)
            {
                hash ^= ProcessingCallback.GetHashCode();
            }
            hash ^= inputFormats_.GetHashCode();
            hash ^= outputFormats_.GetHashCode();
            if (OnCreated.Length != 0)
            {
                hash ^= OnCreated.GetHashCode();
            }
            if (ProcessFrequency != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ProcessFrequency);
            }
            hash ^= authors_.GetHashCode();
            hash ^= tags_.GetHashCode();
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ProcessingCallback.Length != 0)
            {
                hash ^= ProcessingCallback.GetHashCode();
            }
            hash ^= inputFormats_.GetHashCode();
            hash ^= outputFormats_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }