Skip to content

Uri GetHashCode mismatch for instances that compare as Equal #124651

@MihaZupan

Description

@MihaZupan
var uri1 = new Uri("\\\\\u202a");
var uri2 = new Uri("file:///");

Console.WriteLine(uri1 == uri2);
Console.WriteLine(uri1.GetHashCode());
Console.WriteLine(uri2.GetHashCode());

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions