去掉字符串中重复字符

string aa = "abfjdfjdaadddbbb国庆";
            aa=new string(aa.ToCharArray().Distinct().ToArray());
            Response.Write(aa);

 

 

aa="abfjd国庆";

你可能感兴趣的:(ASP.NET)