Create your own custom, rich C# mixins with Cilador! Mixins are the perfect DRY solution for sharing code without abusing inheritance.
Mixins containing fields, methods, properties, events, and nested types.
Generics mixins and mixin members, so long as the top-level mixin implementation is closed. (Members and nested types can be open.)
Public, private, protected, internal, and protected internal members.
Custom attributes on members.
Abstract nested types and abstract members within these nested types.
Generic nested types and generic members.
Parameterless constructors for mixin implementations.
Type initializers (i.e. static constructors) in mixin implementations
Parameters on mixin implemenation constructors.
Unmanaged code calls (extern)
Mixins implementing multiple interfaces
Mixins with base types other than object
Value type mixins
Please consider this version of Cilador.Fody to be pre-release.
Requires NuGet 2.8 or higher.