ToList()什么时候用?1.当需要对返回的结果进行操作时(比如foreach()操作),可以将这个结果先ToList(),这样可以提高程序运行速度。2.当不需要对结果进行操作时,直接返回IEnumerable对象即可。?:运算符需要返回的结果是Nullable类型的值时怎么办?decimal?
...
分类:
其他好文 时间:
2014-05-09 18:17:48
阅读次数:
265
[1].[代码] [C#]Datatable和json互相转换操作 跳至 [1]view
sourceprint? #region DataTable 转换为Json字符串实例方法 /// /// GetClassTypeJosn 的摘要说明 ///
public class GetCl...
分类:
Web程序 时间:
2014-05-09 17:42:06
阅读次数:
549
原文:动态传递参数到DevExpress.XtraReports的小结
前两种方法和WinForm一样,可以传递参数、数组、实体对象、DataTable等1. 采用构造函数具体用法:在Report中public partial
class XtraReport1 : DevExpress.XtraR...
分类:
其他好文 时间:
2014-05-09 11:49:41
阅读次数:
278
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Data.SqlClient;using
System.IO;namespace CindyDatabaseP...
分类:
数据库 时间:
2014-05-09 11:37:48
阅读次数:
378
/// /// 根据Excel转换成DataTable /// /// 文件名称 ///
private System.Data.DataTable getTableByExecl(string FileName) ...
分类:
其他好文 时间:
2014-05-09 11:03:31
阅读次数:
246
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using
System.IO;namespace DirectoryCopy...
分类:
其他好文 时间:
2014-05-08 20:30:59
阅读次数:
381
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using
System.Net;using ...
分类:
其他好文 时间:
2014-05-08 20:30:34
阅读次数:
389
首先这种情况出现在应用程序启动前的方法里面。本想通过发射来实现一些功能。谁知道被这个坑了。碰到这种问题。已经相当无语了。同时也不知道该如何解决。望有能之士帮忙解答using
System;using System.IO;using System.Linq;using System.Reflectio...
分类:
Web程序 时间:
2014-05-04 20:24:23
阅读次数:
433
jquery datatable
参数DataTables(http://www.datatables.net/)应该是我到目前为止见过的,功能最强大的表格解决方案(当然,不计算其它整套框架中的table控件在内)。先把它主页上写的特性翻译罗列如下:可变长度分页;动态过滤;多列排序,带数据类型检测功...
分类:
Web程序 时间:
2014-05-04 19:26:52
阅读次数:
586
using System;using
System.Collections.Generic;using System.Linq;using System.Text;using
System.Web;using System.Collections.Specialized;namespace NewX...
分类:
Web程序 时间:
2014-05-04 19:04:08
阅读次数:
437