Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (XmlName != null ? XmlName.GetHashCode() : 0);
         result = (result * 397) ^ (Elements != null ? Elements.GetHashCode() : 0);
         result = (result * 397) ^ NameSuffix;
         return(result);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (XmlName != null ? XmlName.GetHashCode() : 0);
         result = (result * 397) ^ (XmlType != null ? XmlType.GetHashCode() : 0);
         result = (result * 397) ^ IsList.GetHashCode();
         result = (result * 397) ^ (_targetClass != null ? _targetClass.GetHashCode() : 0);
         return(result);
     }
 }
Exemplo n.º 3
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
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)XmlType;
         hashCode = (hashCode * 397) ^ (Namespace != null ? Namespace.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (XmlName != null ? XmlName.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     return(XmlName != null ? XmlName.GetHashCode() : 0);
 }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     return(element.GetHashCode() + name.GetHashCode());
 }