java: public void setReadonly(boolean readonly) {if ( this.readonly && !readonly ) throw new IllegalStateException("can't alter readonly IntervalSet");this.readonly = readonly;}
C#: public virtual void SetReadonly(bool @readonly){if (this.@readonly && !@readonly){throw new InvalidOperationException("can't alter readonly IntervalSet");}this.@readonly = @readonly;}