Hi,
Want to remove duplicates from a list so if my list contains:
www.test.com
test.com
mytest.com
I want the final list to look like below(only selecting the domains with www from the duplicate in front) :
www.test.com
mytest.com
I have this linq but it seems to ignore all the domains which dont have www in front because it is selecting only www ones:
var result=inputList.Where(x=>x.DomainName.StartsWith("www.")).Distinct();
help would be appreciated