摘要: 1 #region Generic structuer 2 public struct Point<T> 3 { 4 //Generic state date. 5 private T xPos; 6 private T yPos; 7 //Generic constructor. 8 public Point(T xVal, T yVal) 9 {10 xPos = xVal;11 yPos = yVal;12 }1... 阅读全文
posted @ 2013-04-26 10:27 张楠0412 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 用自定义泛型实现交换任意类型的两个变量。 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 int a = 10, b = 90; 6 Console.WriteLine("Before swap: {0}, {1}", a, b); 7 Swap<int>(ref a, ref b); 8 Console.WriteLine("After swap: {0}, {1}", a, b); 9... 阅读全文
posted @ 2013-04-26 10:01 张楠0412 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 一个好用的网站:http://studiostyl.es/ 阅读全文
posted @ 2013-04-15 16:20 张楠0412 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 计算机---->管理------>磁盘管理----->给U盘加上盘符就好了。 阅读全文
posted @ 2013-04-10 22:44 张楠0412 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: 将下载的模板压缩包解压,把“-skins”和“Widgets”目录下的文件覆盖到项目的对于位置。 阅读全文
posted @ 2013-03-23 17:24 张楠0412 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 安装完DotNetNuke 7 之后,可能会发生用超级账户登录之后无法编辑页面,无法添加模板的问题,点击“Edit Page”或“Module”之后又返回到了主页。解决方法: 在web.config中找到<system.webServer>节点。 然后修改节点<modules>为:<modules runAllManagedModulesForAllRequests="true"> 如图: 阅读全文
posted @ 2013-03-18 10:18 张楠0412 阅读(211) 评论(1) 推荐(0) 编辑
摘要: Listbox 的全选:Me.WorkerList.SelectAll()Listbox 的取消全选:Me.WorkerList.SelectedIndex = -1 阅读全文
posted @ 2012-08-15 15:55 张楠0412 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1,新建一个数据库,然后还原 .bak 时,出现“媒体簇的结构不正确 SQL Server无法处理此媒体簇”错误的解 决方法:把数据库连接到“.\SQLEXPRESS”2,出现“备份集中的数据库备份与现有的 数据库不同”的解决方法:在“选项”中选择“覆盖现有数据库 阅读全文
posted @ 2012-08-15 14:52 张楠0412 阅读(204) 评论(0) 推荐(0) 编辑