MixinRefactoring.ClassWithSourceCode.AllConstructorsHaveParameter C# (CSharp) Method

AllConstructorsHaveParameter() public method

public AllConstructorsHaveParameter ( string parameterName ) : bool
parameterName string
return bool
        public virtual bool AllConstructorsHaveParameter(string parameterName) => _constructors.AllConstructorsHaveParameter(parameterName);
    }

Usage Example

 public override bool CanExecute(ClassWithSourceCode childClass, Settings settings = null)
 {
     if (settings == null || !settings.InjectMixins)
         return false;
     return !(childClass.AllConstructorsHaveParameter(_mixin.Name.ConvertFieldNameToParameterName()) &&
           childClass.HasConstructor);
 }