Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((UnderlyingType?.GetHashCode() ?? 0) * 397);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = UnderlyingType.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Definitions.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked {
         int hash = UnderlyingType.GetHashCode();
         foreach (string name in ElementNames)
         {
             hash *= 31;
             hash += name != null?name.GetHashCode() : 0;
         }
         return(hash);
     }
 }
Esempio n. 4
0
        public override int GetHashCode()
        {
            if (UnderlyingType != null)
            {
                return(UnderlyingType.GetHashCode());
            }
            int x = Name.GetHashCode() << 7 + PreferredXamlNamespace.GetHashCode();

            if (TypeArguments != null)
            {
                foreach (var t in TypeArguments)
                {
                    x = t.GetHashCode() + x << 5;
                }
            }
            return(x);
        }
Esempio n. 5
0
 public override int GetHashCode()
 {
     return(Projector.GetHashCode() ^ UnderlyingType.GetHashCode());
 }
Esempio n. 6
0
 public override int GetHashCode()
 {
     return(UnderlyingType.GetHashCode());
 }