示例#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());
 }