Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(
             ((Os?.GetHashCode() ?? 0) * 163) ^
             ((Architecture?.GetHashCode() ?? 0) * 197)
             );
     }
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Raw.Length != 0)
            {
                hash ^= Raw.GetHashCode();
            }
            if (Platform.Length != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (Os.Length != 0)
            {
                hash ^= Os.GetHashCode();
            }
            if (OsVersion.Length != 0)
            {
                hash ^= OsVersion.GetHashCode();
            }
            if (Engine.Length != 0)
            {
                hash ^= Engine.GetHashCode();
            }
            if (EngineVersion.Length != 0)
            {
                hash ^= EngineVersion.GetHashCode();
            }
            if (Browser.Length != 0)
            {
                hash ^= Browser.GetHashCode();
            }
            if (BrowserVersion.Length != 0)
            {
                hash ^= BrowserVersion.GetHashCode();
            }
            if (Localization.Length != 0)
            {
                hash ^= Localization.GetHashCode();
            }
            if (Mobile != false)
            {
                hash ^= Mobile.GetHashCode();
            }
            if (WalletCompatible != false)
            {
                hash ^= WalletCompatible.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
        public override int GetHashCode()
        {
            int hashCode = -1328209612;

            if (App != null)
            {
                hashCode += App.GetHashCode();
            }

            if (Moto != null)
            {
                hashCode += Moto.GetHashCode();
            }
            hashCode += Notes.GetHashCode();
            hashCode += Users.GetHashCode();

            if (Time != null)
            {
                hashCode += Time.GetHashCode();
            }

            if (Os != null)
            {
                hashCode += Os.GetHashCode();
            }

            if (PhpVersion != null)
            {
                hashCode += PhpVersion.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            return(hashCode);
        }