using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ...
分类:
Web程序 时间:
2014-06-25 21:16:23
阅读次数:
263
Collections.sort 异常
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(TimSort.java:868)
at java.util.TimSort.mergeAt(Ti...
分类:
其他好文 时间:
2014-06-25 19:47:27
阅读次数:
250
使用JetBrains的DotPeek工具可以方便地查看.net的部分源码。于是看了一下.NET的内部是如何实现排序的算法。
在System.Collections.Generic 命名空间下可以看到ArraySortHelper的实现。
public void Sort(T[] keys, int index, int length, IComparer comparer)
{ ...
分类:
Web程序 时间:
2014-06-25 19:20:12
阅读次数:
299
导包antlr-2.7.7.jaraopalliance-1.0.jarasm-3.3.jarcommons-collections-3.2.1.jarcommons-lang-2.6.jarcommons-logging-1.1.1.jarcxf-2.4.2.jarcxf-manifest.jar...
分类:
Web程序 时间:
2014-06-25 19:04:07
阅读次数:
523
服务端:服务端和客户端都需要引入包 1 antlr-2.7.7.jar 2 aopalliance-1.0.jar 3 asm-3.3.jar 4 commons-collections-3.2.1.jar 5 commons-lang-2.6.jar 6 commons-logging-1.1.1...
分类:
编程语言 时间:
2014-06-25 15:47:24
阅读次数:
293
版本为5.1.2using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Sys...
分类:
其他好文 时间:
2014-06-25 15:13:27
阅读次数:
207
一,哈希表(Hashtable)简述 在.NET Framework中,Hashtable是System.Collections命名空间提供的一个容器,用于处理和表现类似keyvalue的键值对,其中key通常可用来快速查找,同时key是区分大小写;value用于存储对应于key的值。Hashtab...
分类:
其他好文 时间:
2014-06-25 15:04:53
阅读次数:
164
使用 F# 列表
在 C# 中使用 F# 的列表,是完全可能的,但是,我建议不要用,因为,只要再做一点,就会使事情在 C# 看来更加自然。例如,把列表转换成数组很简单,用List.toArray 函数;转换成System.Collections.Generic.List,用 new ResizeArray()构造函数;转换成System.Collections.Generic.IEnume...
分类:
其他好文 时间:
2014-06-24 22:05:13
阅读次数:
318
(1) 使用NumericUpDown
(2) 处理KeyPress 按钮
(3) 处理Text_Changed 事件
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Li...
分类:
其他好文 时间:
2014-06-24 21:45:43
阅读次数:
173
.Net有两类基础的集合类型:List和Dictionary。List是基于Index的,Dictionary是基于key的。集合类型一般实现了IEnumberable,ICollection或者Ilist
接口。
类型
描述
使用场景
ArrayList
能够根据添加项动态调整集合大小。
适用于存储自...
分类:
其他好文 时间:
2014-06-24 17:52:14
阅读次数:
331