Thursday, September 19, 2013

how to remove duplicates in string


string OriginalString = "system";
char[] Other = OriginalString.ToCharArray().Distinct().ToArray();
Console.WriteLine(Other);







Please remember to 'Mark as Answer' the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


No comments:

Post a Comment