public static string RemoveDuplicates(string input) { return new string(input.ToCharArray().Distinct().ToArray()); }
Remove duplicate characters from given string?
Input: "cutcopypaste" Output: "uoyase"