public readonly struct Location
public string Path { get; }
public int Position { get; }
public Location(string path, int position) => (Path, Position) = (path, position);
public static void Main()
var hash1 = new Location(path: "", position: 42).GetHashCode();
var hash2 = new Location(path: "", position: 1).GetHashCode();
var hash3 = new Location(path: "1", position: 42).GetHashCode();
Console.WriteLine($"hash1 = {hash1}, hash2 = {hash2}, hash3 = {hash3}");