码迷,mamicode.com
首页 >  
搜索关键字:pig null    ( 34540个结果
单例模式在多线程环境下的lazy模式为什么要加两个if(instance==null)
设计模式,单例模式,多线程,lazy模式
分类:编程语言   时间:2014-06-28 14:35:52    阅读次数:254
C#_ajax fileupload
@{ ViewBag.Title = "Index"; Layout = null;}Index @*@Html.BeginForm("Index", "Test", FormMethod.Post, new { @enctype = "multipart/for...
分类:其他好文   时间:2014-06-28 14:18:27    阅读次数:155
Leetcode: Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?一次...
分类:其他好文   时间:2014-06-28 13:38:14    阅读次数:171
[LeetCode] Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-06-28 13:23:40    阅读次数:150
C#:Use Form as Subform
static class SubFormExtensions{ internal static bool AttachTo(this Form subForm, Panel panel) { if (panel == null || subForm == null) ret...
分类:其他好文   时间:2014-06-28 12:24:57    阅读次数:174
npoi的使用方法
使用NPOI导出Excel代码如下,直接上代码,代码可以直接运行 private static MemoryStream RenderToExcel(DataTable dt) { if (Equals(dt, null)) { ...
分类:其他好文   时间:2014-06-28 12:23:36    阅读次数:282
android 调用系统相机获取图片、调用系统相册获取图片,并对图片进行截取
打开系统相册获取图片并截取,代码相对简单 1 Intent intent = new Intent(Intent.ACTION_GET_CONTENT,null); 2 intent.setType("image/*"); 3 intent.putExtra("cro...
分类:移动开发   时间:2014-06-24 09:45:53    阅读次数:360
检查或遍历android手机应程
检查android手机中是否存在某应程public boolean checkApp(String packageName) { if (packageName == null || "".equals(packageName)) return false; try { ApplicationInf...
分类:移动开发   时间:2014-06-24 09:16:50    阅读次数:265
C# WinForm 时间控件(DEV控件)
此处收集一些关于时间控件(DevExpress.XtraEditors.DateEdit())的一些基本设定方式:1. 默认显示当前日期: a. 在某些情况下(还未明朗),在form.Designer.cs 中,将该控件的EditValue赋null值:this.detoBeginTime.Edi....
分类:Windows程序   时间:2014-06-24 09:04:33    阅读次数:770
数据库的update、delete、insert和select用法
String sql=null;1、sql="update 表名 set = [where=]"2、sql="delete from 表名 [where=]"3、sql="insert into 表名 [column_list] values(date_values) [where=]"4、sql=...
分类:数据库   时间:2014-06-23 08:17:50    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!