摘要:
Array类实现了对数组中元素的冒泡排序。Sort()方法需要数组中的元素实现IComparable接口。简单类型,如System.String和System.Int32实现了IComparable接口,所以可以对包含这些类型的元素排序。 在示例程序中,数组name包含string类型的元素,这个数组是可以排序的。 string names = { "Christin... 阅读全文
posted @ 2008-04-08 15:44 xiaolei1982 阅读(406) 评论(0) 推荐(0)
浙公网安备 33010602011771号