MCQs > IT & Programming > C# > Which of the following code samples will create a comma separated list from IList or IEnumerable?

C# MCQs

Which of the following code samples will create a comma separated list from IList<string> or IEnumerable<string>?

Answer

Correct Answer: List<string> ls = new List<string>(); ls.Add("one"); ls.Add("two"); string type = string.Join(",", ls.ToArray());

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it