Пример #1
0
        // Sort the list, according to the comparer
        internal static void Sort(this IList list, IComparer comparer)
        {
            List <object> al;

#if false // no live shaping
            LiveShapingList lsList;
#endif // no live shaping

            if ((al = list as List <object>) != null)
            {
                ListHelpers.Sort(al, comparer);
            }
#if false // no live shaping
            else if ((lsList = list as LiveShapingList) != null)
            {
                lsList.Sort();
            }
#endif // no live shaping
        }