C# Mixins, sort of

August 5, 2006

Right now Visual Studio .NET 2005 offers to implement interfaces automatically either explicitly or implicitly. If you choose either, it implements stub methods for the interface with a single statement that throws a MethodNotImplemented exception. I propose that VS also offer to insert a code template for the interface. Programmers can write a template for an interface, which the IDE finds and inserts into the class. It’s like a poor-man’s mixin.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: