public TagGroup(int fontSize, FrequencyGroup frequencyGroup) { if (fontSize <= 0) { throw new ArgumentException($"Font size can't be negative or zero, but was {fontSize}"); } FontSize = fontSize; FrequencyGroup = frequencyGroup; }
public bool IntersectWith(FrequencyGroup other) { return(MinFrequencyCoef >= other.MinFrequencyCoef && MinFrequencyCoef < other.MaxFrequencyCoef || MaxFrequencyCoef > other.MinFrequencyCoef && MaxFrequencyCoef <= other.MaxFrequencyCoef); }