+// Records with custom equality.
+[<CustomEquality; NoComparison>]
+type Person =
+ { First: string; Last: string; Age: int }
+ override this.Equals(other) =
+ match other with
+ | :? Person as p -> p.First = this.First && p.Last = this.Last
+ | _ -> false
+ override this.GetHashCode() =
+ this.First.GetHashCode() ^^^ this.Last.GetHashCode()
+