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

            hash = hash * 31 + Target.GetHashCode();
            hash = hash * 31 + Trait.GetHashCode();
            hash = hash * 31 + ValueString.GetHashCode();
            hash = hash * 31 + IsNegative.GetHashCode();
            return(hash);
        }
Beispiel #2
0
 /// <summary>Returns a hash code for this instance.</summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Name.GetHashCode();
         hashCode = (hashCode * 397) ^ Index.GetHashCode();
         hashCode = (hashCode * 397) ^ Register.GetHashCode();
         hashCode = (hashCode * 397) ^ SystemValueType.GetHashCode();
         hashCode = (hashCode * 397) ^ ComponentType.GetHashCode();
         hashCode = (hashCode * 397) ^ UsageMask.GetHashCode();
         hashCode = (hashCode * 397) ^ ReadWriteMask.GetHashCode();
         hashCode = (hashCode * 397) ^ Stream.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode();
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ (Model != null ? Model.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Type;
         hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ComponentType != null ? ComponentType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #4
0
 public override int GetHashCode()
 {
     return(Identifier.GetHashCode());
 }
Beispiel #5
0
 public override int GetHashCode()
 {
     return(Type.GetHashCode() * 10000 + Entity.GetHashCode());
 }