1 instantiation of ByteSequenceComparer
Microsoft.CodeAnalysis (1)
Collections\ByteSequenceComparer.cs (1)
18
internal static readonly ByteSequenceComparer Instance = new
ByteSequenceComparer
();
10 references to ByteSequenceComparer
Microsoft.CodeAnalysis (10)
CodeGen\PrivateImplementationDetails.cs (2)
513
ByteSequenceComparer
.Equals(x.Data, y.Data);
516
ByteSequenceComparer
.GetHashCode(obj.Data); // purposefully not including Value, as it won't add meaningfully to the hash code
Collections\ByteSequenceComparer.cs (1)
18
internal static readonly
ByteSequenceComparer
Instance = new ByteSequenceComparer();
DiagnosticAnalyzer\AdditionalTextComparer.cs (2)
50
return
ByteSequenceComparer
.Equals(xText.GetChecksum(), yText.GetChecksum());
56
ByteSequenceComparer
.GetHashCode(GetTextOrNullIfBinary(obj)?.GetChecksum() ?? ImmutableArray<byte>.Empty));
PEWriter\MetadataWriter.cs (2)
4339
return x.Item2 == y.Item2 &&
ByteSequenceComparer
.Equals(x.Item1, y.Item1);
4344
return Hash.Combine(
ByteSequenceComparer
.GetHashCode(x.Item1), x.Item2.GetHashCode());
PEWriter\MetadataWriter.DynamicAnalysis.cs (1)
50
_blobs = new Dictionary<ImmutableArray<byte>, BlobHandle>(1 + methodCountEstimate + 4 * documentCountEstimate,
ByteSequenceComparer
.Instance);
StrongName\CryptoBlobParser.cs (1)
116
if (
ByteSequenceComparer
.Equals(blob, s_ecmaKey))
Symbols\ISymbolExtensions_PerformIVTCheck.cs (1)
85
bool q4 = (q2 & q3) &&
ByteSequenceComparer
.Equals(grantedToPublicKey, assemblyWantingAccessKey);