去除SortedList的自动排序功能

Code
添加命名空间using System.Collections;
一下是对IComparer类的Compare()重写
然后在对SortedList类进行实例化的时候
  SortedList strDiction = new SortedList(new MySort()); 
就消除了  SortedList的自动排序功能!
posted @ 2009-07-20 16:31  天默  阅读(519)  评论(0编辑  收藏  举报