I have a code like
string code = \"AABBDDCCRRFF\";
In this code, I want to retrieve only distinct characters
The Output should be l
string code = "AABBDDCCRRFF"; string answer = new String(code.Distinct().ToArray());