/// <summary>
 ///     Returns a hash code for this Schema.
 /// </summary>
 /// <returns>
 ///     An integer that specifies a hash value for this Schema.
 /// </returns>
 public override int GetHashCode()
 {
     if (this.hashCode == null)
     {
         int h = Subject.GetHashCode();
         h             = 31 * h + Version;
         h             = 31 * h + Id;
         h             = 31 * h + SchemaString.GetHashCode();
         this.hashCode = h;
     }
     return(this.hashCode.Value);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 ///     An integer that specifies a hash value for this instance.
 /// </returns>
 /// <remarks>
 ///     The hash code returned is that of the Schema property,
 ///     since the other properties are effectively derivatives
 ///     of this property.
 /// </remarks>
 public override int GetHashCode()
 {
     return(SchemaString.GetHashCode());
 }