05 2012 档案

摘要:In XAML you specify this as a string. In code,pass the identifier (a RoutedEvent value.) The onl 阅读全文
posted @ 2012-05-26 13:12 xiaokang088 阅读(344) 评论(0) 推荐(0) 编辑
摘要:官网http://snoopwpf.codeplex.com/Why Aren’t My Apps Showing Up in the App Chooser?One question that comes up all the time is the situation where the application you are trying to Snoop, isn't appearing in the application chooser (i.e. the combo box that lists the processes you can Snoop). This is 阅读全文
posted @ 2012-05-21 17:39 xiaokang088 阅读(807) 评论(0) 推荐(0) 编辑
摘要:托管代码的代码分析警告(按 CheckId 排列)http://msdn.microsoft.com/zh-cn/library/dd380629今天做了一下代码分析,笔记如下:1. ToLower() 出现如下提示Warning4CA1304 : Microsoft.Globalization : Because the behavior of 'string.ToLower()' could vary based on the current user's locale settings, replace this call in 'CommonProvid 阅读全文
posted @ 2012-05-14 17:01 xiaokang088 阅读(479) 评论(0) 推荐(0) 编辑
摘要:MSDN解释:http://msdn.microsoft.com/zh-cn/library/hyxc48dt.aspx部分摘录:该比较使用 culture 参数来获取区域性特定的信息,如大小写规则和各个字符的字母顺序。 例如,区域性可以指定将某些字符的组合视为单个字符,或者用特殊方法比较大写和小写字符,或者字符的排序顺序取决于它前面或后面的字符。使用字排序规则执行比较。 有关字、字符串和顺序排序的更多信息,请参见 System.Globalization.CompareOptions。一个或者两个比较字都可以是 null。 根据定义,任何字符串(包括空字符串 (""))的 阅读全文
posted @ 2012-05-14 11:09 xiaokang088 阅读(464) 评论(0) 推荐(0) 编辑
摘要:今天在做code analysis时,遇到了这个提示Warning1CA1014 : Microsoft.Design : Mark 'Demo.exe' with CLSCompliant(true) because it exposes externally visible types.不明白 CLSCompliant 为何物,搜索,找到:CLSCompliant(true) 简单的说,是为了让C#编写的dll可以供VB.net 调用,因为两个语言毕竟有不同的地方,需要声明一下是否可以调用。这个仁兄的解释很好:http://www.cnblogs.com/mywebname 阅读全文
posted @ 2012-05-14 10:51 xiaokang088 阅读(5215) 评论(0) 推荐(0) 编辑
摘要:准备类:OperationItem public class OperationItem { public int Num { get; set; } public bool HasInit { get; set; } public void Add(int number) { Num += number; Debug.Print("{0}| add......{1}", DateTime.Now.ToString("hh:mm:ss fff"), Num); ... 阅读全文
posted @ 2012-05-09 15:13 xiaokang088 阅读(2919) 评论(1) 推荐(0) 编辑