Use HashCode.Combine() in interop source generators and analyzers instead of custom...
authorJackson Schuster <36744439+jtschuster@users.noreply.github.com>
Fri, 9 Jun 2023 23:12:29 +0000 (18:12 -0500)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2023 23:12:29 +0000 (16:12 -0700)
commit49b3c2a12d8b86ec651e5e86f7bf1365ad4dce34
tree65f0ddb824cb095c9230854881b6fc95908aa088
parent454057de49d9e2ab337f808e1f65d1dda8dbe71a
Use HashCode.Combine() in interop source generators and analyzers instead of custom GetHashCode implementations (#87221)

Use the HashCode.Combine from shared Roslyn code rather than use the custom implementations that xor the values together. This PR fixes all overrides of GetHashCode in System.Runtime.InteropServices.
src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/ComInterfaceInfo.cs
src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/ContainingSyntaxContext.cs
src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/ManagedTypeInfo.cs
src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/ManualTypeMarshallingHelper.cs