public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Tag.Length != 0)
            {
                hash ^= Tag.GetHashCode();
            }
            if (IsPulled != false)
            {
                hash ^= IsPulled.GetHashCode();
            }
            if (ImageSize != 0L)
            {
                hash ^= ImageSize.GetHashCode();
            }
            if (pullDuration_ != null)
            {
                hash ^= PullDuration.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            if (IsTrusted != false)
            {
                hash ^= IsTrusted.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public override int GetHashCode() => (Color ? 1 : 0) ^ ImageSize.GetHashCode() ^ ThumbnailSize.GetHashCode();