public static void Beep (int frequency, int duration) { if (frequency < 37 || frequency > 32767) throw new ArgumentOutOfRangeException ("frequency"); if (duration <= 0) throw new ArgumentOutOfRangeException ("duration"); ConsoleDriver.Beep (frequency, duration); }