I have this code:
private void test(List<string> a)
{
}
I want to use for in for loop’s and to check that if there are duplicated items in the List a
Then mark it with null.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure exactly what you want to do here but if you wanted to just get a collection of the distinct values in the list you could use LINQ to do this: