Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [MetadataAttribute]
- public class Plugin : InheritedExport
- {
- public Plugin() :
- base(typeof(IPlugin))
- {
- }
- public string Category {get;set;}
- public string Name {get;set;]
- }
- [Plugin] //exports IPlugin
- public class BasePart : IPlugin {
- }
- [Plugin(Category="SomeCategory", Name="DerivedPart"]
- public class DerivedPart : BasePart {
- }
Add Comment
Please, Sign In to add comment