Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
"Overall, I like this feature *a lot* (will post some concrete examples of why in the future)."
"While using .NET Compact Framework classes, the occasion often arises that a particular class has members missing compared to the full Framework. Typically, developers have to write the missing functionality themselves and then decide whether to use inheritance if possible to add the missing members or add them to a utility helper class."
public static class TimerExtensions{ public static void Start(this Timer t) { t.Enabled = true; } public static void Stop(this Timer t) { t.Enabled = false; }}
private void menuItem1_Click(object sender, EventArgs e){ timer1.Start();}private void menuItem2_Click(object sender, EventArgs e){ timer1.Stop();}