110,538
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var result = Enumerable.Range(1, 10).Select(x => new { id = Guid.NewGuid().ToString(), value = x }).ToList().OrderBy(x => x.id).Select(x => x.value);
foreach (int i in result)
{
Console.WriteLine(i);
}
}
}
}