Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PropertyName != null ? PropertyName.GetHashCode() : 0) * 397) ^ (DependsOn != null ? DependsOn.GetHashCode() : 0));
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PropertyName.Length != 0)
            {
                hash ^= PropertyName.GetHashCode();
            }
            if (propertyForeignTenancyId_ != null)
            {
                hash ^= PropertyForeignTenancyId.GetHashCode();
            }
            if (ApiUrl.Length != 0)
            {
                hash ^= ApiUrl.GetHashCode();
            }
            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (WebsiteUrl.Length != 0)
            {
                hash ^= WebsiteUrl.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PropertyName != null ? PropertyName.GetHashCode() : 0) * 397) ^ (ParentProperty != null ? ParentProperty.GetHashCode() : 0));
     }
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Message.GetHashCode() * 256) ^ (PropertyName.GetHashCode() * 128));
     }
 }
Exemplo n.º 5
0
        public void SetReferenceValue(PropertyName id, Object value)
        {
            var reference = FindReference(id);

            if (reference == null)
            {
                if (value == null)
                {
                    return;
                }

                reference = new SceneReference(id.GetHashCode(), value);
                references.Add(reference);
            }
#if UNITY_EDITOR
            if (value == null)
            {
                reference.TotalUses--;
                if (reference.TotalUses <= 0)
                {
                    ClearReferenceValue(id);
                }
                return;
            }
            reference.TotalUses++;
#endif
            reference.Object = value;
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return(((int)ExtractionMode * 397) ^ PropertyName.GetHashCode());
     }
 }
 /// <summary>Serves as a hash function for a particular type. </summary>
 /// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PropertyName?.GetHashCode() ?? 0) * 397) ^ (Message?.GetHashCode() ?? 0));
     }
 }
Exemplo n.º 8
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PropertyName != null ? PropertyName.GetHashCode() : 0) * 397) ^ StreamNum);
     }
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Reference.GetHashCode() * 505239) ^ PropertyName.GetHashCode());
     }
 }
Exemplo n.º 10
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PropertyName != null ? PropertyName.GetHashCode() : 0) * 397) ^ (Value != null ? Value.GetHashCode() : 0));
     }
 }
Exemplo n.º 11
0
 public override int GetHashCode()
 {
     if (CategoryName == null || PropertyName == null)
     {
         return(TranslatedText.GetHashCode());
     }
     return(CategoryName.GetHashCode() ^ PropertyName.GetHashCode());
 }
Exemplo n.º 12
0
        public override int GetHashCode()
        {
            int referencingNode = ReferencingItem.GetHashCode();
            int propertyName    = PropertyName.GetHashCode();
            int referencedNode  = ReferencedItem.GetHashCode();

            return(referencingNode + propertyName + referencedNode);
        }
Exemplo n.º 13
0
 /// <summary>Serves as the default hash function. </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var value = (_schema != null ? _schema.GetHashCode() : 0) * 397;
         return(value ^ (PropertyName != null ? PropertyName.GetHashCode() : 0));
     }
 }
Exemplo n.º 14
0
            public override int GetHashCode()
            {
                var hashCode = -295901811;

                hashCode = hashCode * -1521134295 + PropertyName.GetHashCode();
                hashCode = hashCode * -1521134295 + Value.GetHashCode();
                return(hashCode);
            }
Exemplo n.º 15
0
 public override int GetHashCode()
 {
     return(InvalidItem.GetHashCode() +
            PropertyName.GetHashCode() +
            Severity.GetHashCode() +
            ValidationCode.GetHashCode() +
            Message.GetHashCode() +
            Recommendation.GetHashCode());
 }
Exemplo n.º 16
0
        public static GUIContent GetLabel(Object found, PropertyName value, GUIContent name)
        {
            var msg = found == null
                ? "null"
                : string.Format("{0}:{1}", found.GetInstanceID(), value.GetHashCode());

            name.text = string.Format("{0} ({1})", name.text, msg);
            return(name);
        }
Exemplo n.º 17
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PropertyName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ErrorMessage?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (AttemptedValue?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 18
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Cref != null ? Cref.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PropertyName != null ? PropertyName.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 19
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         hash = hash * 23 + PropertyName.GetHashCode();
         hash = hash * 23 + Message.GetHashCode();
         return(hash);
     }
 }
Exemplo n.º 20
0
            public override int GetHashCode()
            {
                int hashCode = ExtendableInterface.GetHashCode() ^ ArgumentCount;

                if (PropertyName != null)
                {
                    hashCode ^= PropertyName.GetHashCode();
                }
                return(hashCode);
            }
Exemplo n.º 21
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Contract.GetHashCode();
         hashCode = (hashCode * 397) ^ (PropertyName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PropertyValue?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 22
0
        /// <summary> Override of Object.GetHashCode </summary>
        public override int GetHashCode()
        {
            int result = Direction.GetHashCode();

            if (PropertyName != null)
            {
                result = unchecked (PropertyName.GetHashCode() + result);
            }
            return(result);
        }
Exemplo n.º 23
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (PropertyName != null ? PropertyName.GetHashCode() : 0);
         result = (result * 397) ^ (PropertyType != null ? PropertyType.GetHashCode() : 0);
         result = (result * 397) ^ (ConverterType != null ? ConverterType.GetHashCode() : 0);
         return(result);
     }
 }
Exemplo n.º 24
0
 public override int GetHashCode()
 {
     unchecked
     {
         if (PropertyName == null || EntityType == null)
         {
             return(0);
         }
         return((EntityType.GetHashCode() * 397) ^ PropertyName.GetHashCode());
     }
 }
Exemplo n.º 25
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (PropertyName != null ? PropertyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PropertyType.GetHashCode();
         hashCode = (hashCode * 397) ^ (ReadMethod != null ? ReadMethod.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AccessorField != null ? AccessorField.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AccessorProp != null ? AccessorProp.GetHashCode() : 0);
         return hashCode;
     }
 }
Exemplo n.º 26
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 7;
                hash = (hash * 397) ^ Condition.GetHashCode();
                hash = (hash * 397) ^ PropertyName.GetHashCode();
                hash = (hash * 397) ^ Message.GetHashCode();

                return(hash);
            }
        }
Exemplo n.º 27
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Emails != null ? Emails.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PropertyName != null ? PropertyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PropertyId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 28
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (PropertyName != null ? PropertyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PropertyId.GetHashCode();
         hashCode = (hashCode * 397) ^ (PropertyValue != null ? PropertyValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ValidValues != null ? ValidValues.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (UsersGroups != null ? UsersGroups.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 29
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked {
         int result = (PropertyName != null ? PropertyName.GetHashCode() : 0);
         result = (result * 397) ^ (PropertyType != null ? PropertyType.GetHashCode() : 0);
         result = (result * 397) ^ (PropertyComponentType != null ? PropertyComponentType.GetHashCode() : 0);
         result = (result * 397) ^ RequiresIndex.GetHashCode();
         result = (result * 397) ^ RequiresMapKey.GetHashCode();
         result = (result * 397) ^ IsIndexed.GetHashCode();
         result = (result * 397) ^ IsMapped.GetHashCode();
         result = (result * 397) ^ IsFragment.GetHashCode();
         return(result);
     }
 }
Exemplo n.º 30
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (TableName != null ? TableName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TableSchema != null ? TableSchema.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ColumnName != null ? ColumnName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ColumnType != null ? ColumnType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PropertyName != null ? PropertyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsNullable.GetHashCode();
         hashCode = (hashCode * 397) ^ IsIdentity.GetHashCode();
         hashCode = (hashCode * 397) ^ IndexType.GetHashCode();
         return(hashCode);
     }
 }