public virtual bool HasInsidePeriods( ITimePeriod test ) { if ( test == null ) { throw new ArgumentNullException( "test" ); } foreach ( ITimePeriod period in periods ) { if ( test.HasInside( period ) ) { return true; } } return false; }