[Programming Fundamentals] Lists more exercises / Distinct list - only getting 20/100
I am having a problem with the first task in "Lists more exercises". In it the program is to delete all repeating values while keeping the first instance of the number in the list. All of my tests come back with everything working fine and the zero tests are fine in judge but the score I get is just 20/100. My code is in the link below. Could someone take a look and see where my mistake is or at least point me in the right direction?
Thanks in advance.
Thanks melik, I had totally overlooked the Distinct method.
You don't even need the foreach() loop, just write
and it works like a charm