Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((UnderlyingType?.GetHashCode() ?? 0) * 397);
     }
 }
Пример #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);
     }
 }
Пример #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);
     }
 }
Пример #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);
        }
Пример #5
0
 public override int GetHashCode()
 {
     return(Projector.GetHashCode() ^ UnderlyingType.GetHashCode());
 }
Пример #6
0
 public override int GetHashCode()
 {
     return(UnderlyingType.GetHashCode());
 }