首页 > 其他 > 详细

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

时间:2014-09-19 17:14:55      阅读:254      评论:0      收藏:0      [点我收藏+]
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;
        }
    }
}

 

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

原文:http://www.cnblogs.com/weixiaojun/p/3981493.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!