linq.sort

                reflections.Sort(delegate(ReflectionEntity a, ReflectionEntity b)

                {

                    if (a.CreatedTime < b.CreatedTime)

                    {

                        return 1;

                    }

                    else if (a.CreatedTime == b.CreatedTime)

                    {

                        return 0;

                    }

                    else

                    {

                        return -1;

                    }

                });

 

你可能感兴趣的:(LINQ)