List(支持按笔画排序的List类)

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;

namespace HahaMil.Util
{
    /// <summary>
    /// List(string\笔画)
    /// 用于按笔画排序
    /// </summary>
    public class StrokesList : List<string>
    {
        /// <summary>
        /// 排序方法
        /// 按笔画对列表中的对象排序
        /// </summary>
        public void Sort()
        {
            CultureInfo culInfo = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = new CultureInfo(133124);
            base.Sort();
            Thread.CurrentThread.CurrentCulture = culInfo;
        }
    }
}

 

posted @ 2014-09-19 15:07  Loder  阅读(406)  评论(0编辑  收藏  举报