protected void CheckModification() { if ( IsReadOnly ) { throw new NotSupportedException( "TimeRange is read-only" ); } }