public static int getNearestSetSize(int maxNumberOfBits){int result=usableBitSetSizes[0];for (int i = 0; i < usableBitSetSizes.length; i++) {if(usableBitSetSizes[i]<=maxNumberOfBits){result=usableBitSetSizes[i];}}return result;}
public static int GetNearestSetSize(int maxNumberOfBits){var result = _usableBitSetSizes[0];foreach (var t in _usableBitSetSizes.Where(t => t <= maxNumberOfBits)){result = t;}return result;}