public override bool CanExecute(ClassWithSourceCode childClass, Settings settings = null)
{
if (_mixin == null || childClass == null)
return false;
// do the mixin operation the first time
if (_mixer == null)
{
_mixer = new Mixer();
_mixer.IncludeMixinInChild(_mixin, childClass);
}
// command can be executed if we either have to forward members or extend a constructor
return _mixer.MembersToImplement.Any();
}