mixinSharp (or shorter: mixin#) is a code refactoring extension for Visual Studio 2015 that adds mixin support to C# by auto generating the required code.
By prefering composition over inheritance, mixins are a powerful software concept, but unfortunately C# does not have native support for them.
mixinSharp tries to fill this gap by generating all the necessary delegation code via a single code refactoring step:
Please see the full documentation for further details.
Updates in V1.6
Events in mixins are now supported.
Updates in V1.5
Generated property accessors avoid unnecessary line breaks.
Updates in V1.4
Support for Visual Studio 15
Interfaces can be implemented by mixins:
Updates in V1.3
Mixin's interfaces can be added to child's interface list.
Updates in V1.2
Constructor injection code for mixin instances can be generated automatically.
Updates in V1.1.2
Optional region directives can be placed around the generated code
Code documentation from mixin members can be adopted to generated methods.