I have a List of objects that some of them have the same Ids, so I would like to remove those elements that are duplicated. ...I tried with something like this:...List<post> posts = postsFromDatabase.Distinct().ToList();
...But it doesn't work!...So I wro...