protected EnumerationSelectionFactory(bool flag, IFlagHelper flagHelper, LocalizationService localizationService) : base(localizationService) { if (flagHelper == null) { throw new ArgumentNullException(nameof(flagHelper)); } var isFlag = flagHelper.IsFlag <T>(); if (!flag && isFlag) { throw new ArgumentException($"T can not have a flag-attribute. Inherit from \"{typeof(FlagSelectionFactory<T>)}\" instead."); } if (flag && !isFlag) { throw new ArgumentException("T must have a flag-attribute."); } }
public PaginationModesSelectionFactory(IFlagHelper flagHelper, LocalizationService localizationService) : base(flagHelper, localizationService) { }
protected FlagSelectionFactory(IFlagHelper flagHelper, LocalizationService localizationService) : base(true, flagHelper, localizationService) { }
public PaginationSettingsBlock(IFlagHelper flagHelper) { this.FlagHelper = flagHelper ?? throw new ArgumentNullException(nameof(flagHelper)); }
protected EnumerationSelectionFactory(IFlagHelper flagHelper, LocalizationService localizationService) : this(false, flagHelper, localizationService) { }