After updating packages to .net7 in roslyn code generation project, has error RS1024 Use 'SymbolEqualityComparer' when comparing symbols
for IEqualityComparer implementation of GetHashCode()
public int GetHashCode([DisallowNull] TypeSymbolMetaType? obj) => System.HashCode.Combine(obj.TypeSymbol);
How to fix HashCode.Combine using SymbolEqualityComparer