using System.Collections.Generic;
public static void Main()
var authors2 = new List<Author> {
authors2.Distinct().Dump();
public class Author : IEquatable<Author>
public string FirstName { get; }
public string LastName { get; }
public Author(string firstName, string lastName)
public bool Equals(Author other)
FirstName == other.FirstName && LastName == other.LastName;
public override int GetHashCode()
: FirstName.GetHashCode();
: LastName.GetHashCode();
return hashFirstName ^ hashLastName;