I have two list objects. I combine them to a single list. Whilst combining I need to remove the duplicates. TweetID is the field to be compared.
List<TweetEntity> tweetEntity1 = tt.GetTweetEntity(Convert.ToInt16(pno), qdecoded, longwoeid );
List<TweetEntity> tweetEntity2 = tt.GetTweetEntity(Convert.ToInt16(pno), qdecoded);
List<TweetEntity> tweetEntity = tweetEntity1.Concat(tweetEntity2).ToList();
I have combined the two lists but unable to filter out the duplicates. Is there any inbuilt function to remove the duplicates in List<>?