예제 #1
0
        /// <inheritdoc/>
        public int GetHashCode(ISymbol obj)
        {
            if (obj is ITypeSymbol typeSymbol)
            {
                return(TypeSymbolComparer.GetHashCode(typeSymbol));
            }

            return(obj?.MetadataName.GetHashCode() ?? 0);
        }
예제 #2
0
 /// <inheritdoc/>
 public int GetHashCode(INamedTypeSymbol obj) => TypeSymbolComparer.GetHashCode(obj);