摘要: Dictionary<string, int> d = new Dictionary<string, int>(); d.Add("cat", 2); d.Add("dog", 1); d.Add("llama", 0); d.Add("iguana", -1);List<string> dd = new List<string>(); dd.Add... 阅读全文
posted @ 2010-04-22 14:53 greencolor 阅读(249) 评论(0) 推荐(0) 编辑
摘要: EditorContext<ProductType>.ShowUITypeEditorif EditorContext is class, not ageneric class, but the ActionListBase is a generic class, Convert toActionListBase<ProductType>.EditorContext.Sho... 阅读全文
posted @ 2010-04-22 13:38 greencolor 阅读(186) 评论(0) 推荐(0) 编辑
摘要: using (MyResource myRes = new MyResource()){ myRes.DoSomething();}==MyResource myRes= new MyResource();try{ myRes.DoSomething();}finally{ // Check for a null resource. if (myRes!= null) // Call the ob... 阅读全文
posted @ 2010-04-22 10:17 greencolor 阅读(174) 评论(0) 推荐(0) 编辑