摘要: http://nonocast.cn阅读全文
posted @ 2010-04-21 00:49 nonocast 阅读(65) 评论(0) 编辑
摘要: 本文包括以下内容: 1. 如何实现Page切换 2. 如何为Page增加淡入淡出(Fade)效果 3. 示例 阅读全文
posted @ 2009-09-27 19:17 nonocast 阅读(2201) 评论(1) 编辑
摘要: 几年的代码下来,多少有些疲惫,在十字路口开始有些犹豫和不知所措,现在重新回到原点,找回最初的激情和冲动。目标如下:1. 带领团队(10人以内)开发应用级产品,管理团队运作,在产品的设计和过程上提供支持。2. 设计包括产品设计和架构设计。目前关注的具体技术如下:1. WPF2. 版式/平面设计 (InDesign)3. 面向对象架构出发。阅读全文
posted @ 2009-09-26 23:31 nonocast 阅读(32) 评论(0) 编辑
摘要: 进城出城写的const和readonly的区别戳非常好:)const和readonly的本质区别就在于时段的不同,const在编译时就必须确定值,而readonly则是在运行起始必须确定值。有些很细的问题平时也就过去了,真的看一下都明白,但就是揣着糊涂用了那么久的readonly.很久没在这写东西了,也算是一个重新开始,开始进入SaaS时代,以后这里还是会定位在.NET SaaS。分享一些WCF以...阅读全文
posted @ 2008-03-08 14:37 nonocast 阅读(40) 评论(0) 编辑
摘要: 1.Problem2.HowTo3.Advance1.Problem问题很简单清晰,就是如何保护你在Config中的数据.比如数据库的连接字符串以及其他对用户隐藏的数据.2.HowTo Step1. 创建machine-level RSA Key Container. aspnet_regiis -pc "XKeys" -exp Step2. 在你的Config文件中加入以下Node (要在欲加...阅读全文
posted @ 2007-07-10 14:25 nonocast 阅读(162) 评论(0) 编辑
摘要: 并不是只有List<T>才有foreach/ForEach的权利,我们也同样很轻松的实现它就像这样,Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicclassForEachSupport{staticvoidMain(strin...阅读全文
posted @ 2006-09-29 19:24 nonocast 阅读(126) 评论(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->BlockDataSource=newBlockDateOrderFilter(newBlockDataSource(newSpecifyDateRangeEntryVODataSourceFilter(...阅读全文
posted @ 2006-07-27 16:06 nonocast 阅读(64) 评论(0) 编辑
摘要: 说实话看到xml就有些晕,不过相对于不断的重复static readonly ILog logger =LogManager.GetLogger(typeof(DataSourceConcurrencyTest));总是相对好些。vs2005采用了snippet生成策略,使用xml来制定规则直接看一下for和prop你就很容易写出上面的logger生成snippet,如下Code highligh...阅读全文
posted @ 2006-07-25 11:23 nonocast 阅读(218) 评论(2) 编辑
摘要: 最easy的,public class CallerTest { staticpublic void Main(string[] args) { try { level1(); } catch (Exception ex){ Console.WriteLine(ex); }finally { Console.ReadLine(); } } staticvoid level1(){ level2()...阅读全文
posted @ 2006-07-03 14:36 nonocast 阅读(97) 评论(0) 编辑
摘要: 申明一个AttributeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicclassFlagsAttribute:Attribute{publicFlagsAttribute(){}}Attribute Class的名字满足/Attribu...阅读全文
posted @ 2006-06-29 15:48 nonocast 阅读(115) 评论(0) 编辑