Find the duplicate objects in a list in C#

Today, I show you an easy & fast way to remove/find the duplicate objects from a list in C#. Assume that we have a list of students like this

So now, how to check students list has duplicate data or not ? We check by verify the phone & email data field

Get the duplicate students

This will give you groups with all the duplicates . If you only want to test for duplicates would then be

Alternatively

Which give you the groups which each item per group stores the original index in a property index and the item in the property phone & email