2015年7月31日
摘要: C#结构体的特点浅析2009-08-13 11:18 意识的偏差 百度空间 字号:T | TC#结构体的特点有哪些呢?C#结构体与类的区别是什么呢?本文就向你介绍相关的内容。AD: C#结构体的特点是什么呢?让我们来看看:C#结构体之struct 类型是一种值类型,通常用来封装小型相关变量组,例如,... 阅读全文
posted @ 2015-07-31 23:29 荣京 阅读(1157) 评论(0) 推荐(0) 编辑
  2015年7月7日
摘要: 10 Rules (steps) for replacing the recursive function with stack and while-loop转自http://www.codeproject.com/Articles/418776/How-to-replace-recursive-f... 阅读全文
posted @ 2015-07-07 04:20 荣京 阅读(1581) 评论(0) 推荐(0) 编辑
  2015年4月16日
摘要: http://www.cnblogs.com/zhili/archive/2013/05/15/csharp5asyncandawait.htmlhttp://blog.zhaojie.me/2012/04/exception-handling-in-csharp-async-await-2.htm... 阅读全文
posted @ 2015-04-16 11:06 荣京 阅读(151) 评论(0) 推荐(0) 编辑
  2014年6月24日
摘要: iOS中delegate、protocol的关系分类:iOS Development2014-02-12 10:47277人阅读评论(0)收藏举报delegateiosprocotolcategoryobject-c 刚开始接触iOS,对delegate、protocol这两个概念比较模糊。参... 阅读全文
posted @ 2014-06-24 22:51 荣京 阅读(207) 评论(0) 推荐(0) 编辑
摘要: KVC/KVO1 KVC/KVO2 线程(GCP) 阅读全文
posted @ 2014-06-24 22:49 荣京 阅读(119) 评论(0) 推荐(0) 编辑
摘要: iOS Core Animation 动画 入门学习(一)基础 reference:https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Int... 阅读全文
posted @ 2014-06-24 22:08 荣京 阅读(166) 评论(0) 推荐(0) 编辑
  2014年4月3日
摘要: DateTimePicker 控件的格式设置 CustomFormat属性设置 : yyyy-MM-dd HH:mm:ss 月大写M,分钟小写m,小时H代表24小时计算,h代表12小时计算yyyy-MM-dd HH:mm:ssFormat属性设为CustomShowUpDown属性设置为true 阅读全文
posted @ 2014-04-03 14:21 荣京 阅读(2365) 评论(0) 推荐(0) 编辑
  2014年3月26日
摘要: 1。在sqlserver 中建立查询2。执行 DBCC MEMORYSTATUS在Windows Server 2000/2003任务管理器中,“内存使用”这个字段是显示工作区分配的内存。一个进程的工作区是这个进程在虚拟地址空间的页面集,这些页面集当前驻存在物理内存中。不可分页的内存分配如地址窗口化扩展控件(AWE),或大型页分配的内存不包含在工作区中。所以,档AWE内存分配机制启用的情况下,任务管理器将显示不正确的内存使用量。要找出SQL Server通过AWE机制分配了多少内存,你可以使用下面的语句查询 sys.dm_os_memory_clerks 动态管理视图:SELECT SUM(a 阅读全文
posted @ 2014-03-26 16:24 荣京 阅读(861) 评论(0) 推荐(0) 编辑
  2013年10月12日
摘要: 用字典存储系列委托http://stackoverflow.com/questions/3813261/how-to-store-delegates-in-a-list1.System.Collections.Generic.Dictionary ;2.dic.Add("action", new Action(() => Console.WriteLine("action called!")));3. Dictionary> fnDict = new Dictionary>(); Func fn = (a) => a + 1; f 阅读全文
posted @ 2013-10-12 14:51 荣京 阅读(242) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/zh-cn/library/w369ty8x(v=vs.90).aspx如果没有自定义 EventArgs 类,事件类型就是非泛型 EventHandler 委托。它无需声明,因为它已在创建 C# 项目时包含的 System 命名空间中进行了声明:例如public event EventHandler RaiseCustomEvent;namespace DotNetEvents{ using System; using System.Collections.Generic; // Define a class to hold custom 阅读全文
posted @ 2013-10-12 14:50 荣京 阅读(315) 评论(0) 推荐(0) 编辑