Does MEF support a base abstract class instead of an Interface?

Nov 26, 2008 at 6:47 PM
Hello, I'd like to use MEF, but in all examples I see an Interface as the contract.  Is it possible to use a Base Abstract Class as the contract instead?

Thanks.
Nov 26, 2008 at 6:48 PM

Yes, you can use an abstract class.

Glenn

From: rgelb [mailto:notifications@codeplex.com]
Sent: Wednesday, November 26, 2008 10:48 AM
To: Glenn Block
Subject: Does MEF support a base abstract class instead of an Interface? [MEF:40887]

From: rgelb

Hello, I'd like to use MEF, but in all examples I see an Interface as the contract. Is it possible to use a Base Abstract Class as the contract instead?

Thanks.

Read the full discussion online.

To add a post to this discussion, reply to this email (MEF@discussions.codeplex.com)

To start a new discussion for this project, email MEF@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Dec 2, 2008 at 1:38 AM
In fact, you can use any .Net type at all - abstract or not.