public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (StringProperty != null ? StringProperty.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IntProperty;
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = _id;
         result = (result * 397) ^ (StringProperty != null ? StringProperty.GetHashCode() : 0);
         result = (result * 397) ^ LongProperty.GetHashCode();
         return(result);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = DateProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ DateOffsetProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ BoolProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ IntProperty;
         hashCode = (hashCode * 397) ^ StringProperty.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 4
0
            public override int GetHashCode()
            {
                int hash = 1;

                hash = hash * 17 + IntProperty.GetHashCode();
                hash = hash * 31 + StringProperty.GetHashCode();
                if (ChildrenProperty != null)
                {
                    hash = ChildrenProperty.Aggregate(hash, (current, someValueClass) => current * 13 + someValueClass.GetHashCode());
                }
                return(hash);
            }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (StringProperty != null ? StringProperty.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IntProperty;
         hashCode = (hashCode * 397) ^ BoolProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ (ListOfSimpleTypes != null ? ListOfSimpleTypes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SimpleTypes != null ? SimpleTypes.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StringProperty.Length != 0)
            {
                hash ^= StringProperty.GetHashCode();
            }
            if (IntProperty != 0)
            {
                hash ^= IntProperty.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StringProperty.Length != 0)
            {
                hash ^= StringProperty.GetHashCode();
            }
            if (LongProperty != 0L)
            {
                hash ^= LongProperty.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }