Click or drag to resize

NetQueueT Class

Thread safe (blocking) expanding queue with TryDequeue() and EnqueueFirst()
Inheritance Hierarchy
SystemObject
  Internal.Lidgren.NetworkNetQueueT

Namespace:  Internal.Lidgren.Network
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public sealed class NetQueue<T>

Type Parameters

T

The NetQueueT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCapacity
Gets the current capacity for the queue
Public propertyCount
Gets the number of items in the queue
Top
Methods
  NameDescription
Public methodClear
Removes all objects from the queue
Public methodContains
Determines whether an item is in the queue
Public methodEnqueue(IEnumerableT)
Adds an item last/tail of the queue
Public methodEnqueue(T)
Adds an item last/tail of the queue
Public methodEnqueueFirst
Places an item first, at the head of the queue
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToArray
Copies the queue items to a new array
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryDequeue
Gets an item from the head of the queue, or returns default(T) if empty
Public methodTryDrain
Gets all items from the head of the queue, or returns number of items popped
Public methodTryPeek
Returns default(T) if queue is empty
Top
Extension Methods
See Also