public static ErrorCorrectionLevel forBits(int bits) { if (bits < 0 || bits >= FOR_BITS.Length) { throw new ArgumentException(); } return FOR_BITS[bits]; } }