一个对象能自己能否作为自己的一个成员?using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApp...
分类:
其他好文 时间:
2014-06-26 00:27:11
阅读次数:
169
public class ViewHolder { // I added a generic return type to reduce the casting noise in client code @SuppressWarnings("unchecked") public static T g...
分类:
移动开发 时间:
2014-06-25 23:38:42
阅读次数:
319
使用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
版本为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
使用 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
服务器是centos6,运行几天突然就连不上了,重启网络服务无效,重启系统有效,但是不久又出错了,日志/var/log/messages如下:Dec2803:49:51kvm1kernel:————[cuthere]————Dec2803:49:51kvm1
kernel:WARNING:atnet/sched/sch_generic.c:261dev_watchdog+0x26b/0×280()(N..
分类:
Web程序 时间:
2014-06-24 16:49:09
阅读次数:
407
初始化相关的文件
include/linux/init.h 初始化相关的宏定义
include/asm-generic/vmlinux.lds.h 编译链接相关的宏定义
init/main.c 启动时的高级初始化
net/core/dev.c 网络设备注册、输入和输出等接口
drivers/net/e100.c e100驱动程序
初始化函数调用关系
对模块的初始化,...
分类:
其他好文 时间:
2014-06-22 22:09:21
阅读次数:
293
//基类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MVATwentyQuestions
{
class Test
{
public string _nam...
分类:
其他好文 时间:
2014-06-22 20:23:05
阅读次数:
186
CollectionhasneithergenerictypeorOneToMany.targetEntity()defined在一对多双向关联关系里,Set如果用泛型,就需要在@OneToMany指明targetEntity多方的实体类,要不就不要用泛型。
分类:
Web程序 时间:
2014-06-22 10:09:21
阅读次数:
356