Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

remove duplicate characters in a string C#

public static string RemoveDuplicates(string input)
{
    return new string(input.ToCharArray().Distinct().ToArray());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #characters #string
ADD COMMENT
Topic
Name
1+8 =