NightOwl888 commented on code in PR #957: URL: https://github.com/apache/lucenenet/pull/957#discussion_r1720741933
########## src/Lucene.Net/Support/QueueExtensions.cs: ########## @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.Runtime.CompilerServices; + +namespace Lucene.Net.Support +{ + /* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + /// <summary> + /// Extensions to <see cref="Queue{T}"/> + /// </summary> + internal static class QueueExtensions + { +#if !FEATURE_QUEUE_TRYDEQUEUE_TRYPEEK + /// <summary> + /// Removes the object at the beginning of the <see cref="Queue{T}"/>, + /// and copies it to the <paramref name="result"/> parameter. + /// </summary> + /// <typeparam name="T">The type of element in the <see cref="Queue{T}"/></typeparam> + /// <param name="queue">The <see cref="Queue{T}"/> to be checked</param> + /// <param name="result">The removed object</param> + /// <returns><c>true</c> if the object was successfully removed; <c>false</c> if the <see cref="Queue{T}"/> is empty.</returns> + /// <exception cref="ArgumentNullException"></exception> Review Comment: My apologies. GitHub stripped the angle brackets. ```xml <exception cref="ArgumentNullException"><paramref name="queue"/> is <c>null</>.</exception> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org