Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReturnType != null ? ReturnType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NativeName != null ? NativeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Parameters.GetHashCode();
         hashCode = (hashCode * 397) ^ Categories.GetHashCode();
         hashCode = (hashCode * 397) ^ GenericTypeParameters.GetHashCode();
         hashCode = (hashCode * 397) ^ (Attributes != null ? Attributes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Doc != null ? Doc.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExtensionName != null ? ExtensionName.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReturnType != null ? ReturnType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NativeName != null ? NativeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Parameters.GetHashCode();
         hashCode = (hashCode * 397) ^ Categories.GetHashCode();
         hashCode = (hashCode * 397) ^ GenericTypeParameters.GetHashCode();
         hashCode = (hashCode * 397) ^ (Attributes != null ? Attributes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Doc != null ? Doc.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExtensionName != null ? ExtensionName.GetHashCode() : 0);
         // ReSharper restore NonReadonlyMemberInGetHashCode
         return(hashCode);
     }
 }