using System.Collections.Generic;
public static void Main()
var hashSet = new HashSet<TestClass>();
var test1 = new TestClass { Name = "Name", Address = "Address" };
var test2 = new TestClass { Name = "Name", Address = "Address" };
foreach (var test in hashSet) {
Console.WriteLine(test.Name);
public struct TestClass {
public string Name {get; set;}
public string Address {get; set;}