If I have the following string:
string s = "abcdefghab";
Then how do I get a string (or char[]) that has just the characters that are repeated in the original string using C# and LINQ. In my example I want to end up with "ab".
Although not necessary, I was trying to do this in a single line of LINQ and had so far come up with:
s.ToCharArray().OrderBy(a => a)...