摘要: The Managed Extensibility framework or MEF is a framework released as part of .NET 4 and Silverlight that provides a mechanism to dynamically compose an application at runtime out of loosely coupled parts and provides a variety of mechanisms to discovering these parts. You can think of this as an im 阅读全文
posted @ 2012-04-20 13:52 reagent 阅读(720) 评论(0) 推荐(0) 编辑
摘要: I was surprised to find today that while putting together some localization samples that by default WPF bindings do not respect the current culture. For example check out this localized form that has been localized to German and is running with both Culture and UICulture in the de-DE locale: If you 阅读全文
posted @ 2012-04-18 15:40 reagent 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Meet the test subjectLet’s create a simple class that returns the numbers from 1 to 100.?12345678910111213public class Loopy{ public int Enumerations { get; private set; } public IEnumerable<int> GetSome() { foreach (int number in Enumerable.Range(1, 100)) { Enumerations++; yield return number 阅读全文
posted @ 2012-04-17 11:15 reagent 阅读(174) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { try { ThrowException1(); // line 19 } catch (Exception x) { Console.WriteLine("Exception 1:"); Console.WriteLine(x.StackTrace); } try { ThrowException2(); // line 25 } catch (Exception x) { Console.WriteLine("Exception 2:"); Console.WriteLine(x.S 阅读全文
posted @ 2011-04-18 10:04 reagent 阅读(246) 评论(1) 推荐(0) 编辑
摘要: BCP native 阅读全文
posted @ 2011-04-07 16:35 reagent 阅读(275) 评论(0) 推荐(0) 编辑
摘要: configure and use database mail 阅读全文
posted @ 2011-03-23 16:33 reagent 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Currently Running Query 阅读全文
posted @ 2011-03-11 12:55 reagent 阅读(135) 评论(0) 推荐(0) 编辑