11 references to SupportsComparerDevirtualization
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
src\Dependencies\Collections\SegmentedDictionary`2.cs (11)
327
else if (
SupportsComparerDevirtualization
&& typeof(TValue).IsValueType)
408
if (
SupportsComparerDevirtualization
522
Debug.Assert(comparer is not null || (
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType));
523
var hashCode = (uint)((
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key));
529
if (
SupportsComparerDevirtualization
709
Debug.Assert((
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType) || comparer is not null);
710
var hashCode = (uint)(
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
721
(
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
786
Debug.Assert((
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType) || comparer is not null);
787
var hashCode = (uint)(
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
798
(
SupportsComparerDevirtualization
&& typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))