1 class A{ 2 static int num = 1; 3 public static
void Display(){ 4 System.out.println( num ); 5 } 6 } 7 8 class B extends A{ 9
...
分类:
其他好文 时间:
2014-06-04 22:47:14
阅读次数:
219
public static IList ToList(this DataTable dt) where
T : class,new() { var prlist = new List(); var t = typeof(T); ...
分类:
其他好文 时间:
2014-05-30 08:05:30
阅读次数:
229
ref和out的使用与区别out的使用—————————————————————————————————————————————————
class Program { static void Main(string[] args) { string tmp;//先声明,但不初始化 ...
分类:
其他好文 时间:
2014-05-30 04:49:48
阅读次数:
154
首先感谢这位小哥!http://qubernet.blog.163.com/blog/static/1779472842011101505853216/太长姿势了。
在jQuery事件绑定中,dbclick可以触发两次click事件。例如一个DOM元素div,既绑定了 click 事件,又绑定了 d...
分类:
数据库 时间:
2014-05-30 04:37:20
阅读次数:
300
Android 提供了API可获取到系统相册中的一些信息,主要还是通过ContentProvider
来获取想要的内容。代码很简单,只要熟悉ContentProvider 就可以了。public static List
getSystemPhotoList(Context context) {...
分类:
移动开发 时间:
2014-05-30 04:07:40
阅读次数:
234
转自:http://blog.chinaunix.net/uid-26822028-id-3191967.html
作者:geceduStatic翻译出来是“静态”“静止”的意思,在C语言中的意思其实和它的本意差不多,表示“静态”或者“全局”的意思,用来修饰变量和函数。经static修饰过后的...
分类:
编程语言 时间:
2014-05-30 03:22:08
阅读次数:
280
这里举一个简单的例子: public class Test{ public static
void main(String[] args){ String s; s = "h...
分类:
编程语言 时间:
2014-05-30 01:43:17
阅读次数:
278
1 public static String encode(String str) 2 { 3
String code=null; 4 try { 5 MessageDigest digest=MessageDigest.ge...
分类:
其他好文 时间:
2014-05-30 00:26:11
阅读次数:
213
dynamic_cast
(expression)dynamic_cast运算符,应该算是四个里面最特殊的一个,因为它涉及到编译器的属性设置,而且牵扯到的面向对象的多态性跟程序运行时的状态也有关系,所以不能完全的使用传统的转换方式来替代。但是也因此它是最常用,最不可缺少的一个运算符。与static....
分类:
编程语言 时间:
2014-05-29 19:08:47
阅读次数:
508
在上一个例子中,有路由定义: public static void
RegisterRoutes(RouteCollection routes) { routes.RouteExistingFiles = true;
route...
分类:
其他好文 时间:
2014-05-29 10:29:53
阅读次数:
152