public FrostedGlassEffect (int amount = 1) { if (amount < 1 || amount > 10) throw new ArgumentOutOfRangeException ("amount"); this.amount = amount; }