110,561
社区成员
发帖
与我相关
我的任务
分享
var candiates = "123456";
var ret = from a in candiates.ToCharArray()
from b in candiates.ToCharArray()
where candiates.IndexOf(b) > candiates.IndexOf(a)
select new string(new char[] { a, b });
ret.ToList().ForEach(s =>
{
Console.WriteLine(s);
});