ppittle / pMixins

pMixins - Mixin framework for C#
http://pMixins.com
Apache License 2.0
23 stars 5 forks source link

Add support Abstract Target to leave abstract mixed in members abstract. #24

Closed ppittle closed 9 years ago

ppittle commented 10 years ago

Example:

public abstract Base{
    public abstract void BaseMethod();
}

[pMixin(Mixin = typeof(Base))]
public abstract partial class Target{
     //Don't force to provide BaseMethodImplementation()
}

Create bool property on pMixin to toggle behavior if abstract members should be required to be implemented? RequireAbstractMembersBeImplemented? Default is true, abstract class can set to false.

ppittle commented 10 years ago

Added tests in https://github.com/ppittle/pMixins/commit/5454f0fc7969bda96909fb3bdc6891ae4c9f653d

ppittle commented 9 years ago

Deployed in v0.6