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

            if (emg_ != null)
            {
                hash ^= Emg.GetHashCode();
            }
            if (orientation_ != null)
            {
                hash ^= Orientation.GetHashCode();
            }
            if (gyroscope_ != null)
            {
                hash ^= Gyroscope.GetHashCode();
            }
            if (accelerometer_ != null)
            {
                hash ^= Accelerometer.GetHashCode();
            }
            if (Gesture != global::Ubii.DataStructure.HandGestureType.Rest)
            {
                hash ^= Gesture.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (emg_ != null)
            {
                hash ^= Emg.GetHashCode();
            }
            if (orientation_ != null)
            {
                hash ^= Orientation.GetHashCode();
            }
            if (gyroscope_ != null)
            {
                hash ^= Gyroscope.GetHashCode();
            }
            if (accelerometer_ != null)
            {
                hash ^= Accelerometer.GetHashCode();
            }
            if (Gesture != 0)
            {
                hash ^= Gesture.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }