New article on MSDN Online

Creating mixins with interfaces + extension methods

My latest C# article has been posted on MSDN Online: http://msdn2.microsoft.com/en-us/vcsharp/default.aspx.  This article discusses how you can use extension methods to provide implementation reuse for functionality supported by an interface.

Teaser quote:

The .NET Framework made extensive use of this in the upcoming Orcas release with the Enumerable class and the Queryable class. Enumerable contains more than 30 methods that are injected into the methods supported by IEnumerable<T>. Any class that implements IEnumerable<T>, which contains 1 method, GetEnumerator(), suddenly supports more than 30 operations

Footnote:  If you visited the site yesterday, you saw the article was posted, but the teaser and byline still referenced Mark Michaelis's previous article. Charlie Calvert quickl got that corrected.  Thanks Charlie!



Published 11 July 2007 04:15 PM by wwagner
Filed under:
Ads by Lake Quincy Media

Comments

No Comments

Search

Go

Blog Group Links

Nascar style badges