This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static List<T> RemoveDoubleItems<T>(List<T> list) | |
{ | |
var newList = new List<T>(); | |
var keyList = new Dictionary<T,string>(); | |
foreach (T item in list) | |
{ | |
if (!keyList.ContainsKey(item)) | |
{ | |
keyList.Add(item, string.Empty); |
NewerOlder