[SerializableAttribute]
[XmlRootAttribute("FixedQueue")]
public sealed class FixedQueue<T> : Queue<T>
<SerializableAttribute>
<XmlRootAttribute("FixedQueue")>
Public NotInheritable Class FixedQueue(Of T)
Inherits Queue(Of T)
Dim instance As FixedQueue(Of T)
[SerializableAttribute]
[XmlRootAttribute(L"FixedQueue")]
generic<typename T>
public ref class FixedQueue sealed : public Queue<T>
[<SealedAttribute>]
[<SerializableAttribute>]
[<XmlRootAttribute("FixedQueue")>]
type FixedQueue<'T> =
class
inherit Queue<'T>
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim queue As New FixedQueue(Of Integer)(maxCapacity:=5)
For x As Integer = 0 To 10
queue.Enqueue(x)
Next
For Each value As Integer In queue
Console.WriteLine(value)
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
FixedQueueT | Initializes a new instance of the FixedQueueT class. |
Count | Gets the number of elements contained in the QueueT. (Inherited from QueueT) |
FreeSlots | Gets the amount of free slots onto this FixedQueueT. |
IsEmpty | Gets a value indicating whether this FixedQueueT is empty. |
IsFull | Gets a value indicating whether this FixedQueueT is full. |
MaxCapacity | Gets the maximum capacity of this FixedQueueT, bottom items beyond the specified capacity are discarded when a new item is pushed. |
Clear | Removes all objects from the QueueT. (Inherited from QueueT) |
Contains | Determines whether an element is in the QueueT. (Inherited from QueueT) |
CopyTo | Copies the QueueT elements to an existing one-dimensional Array, starting at the specified array index. (Inherited from QueueT) |
Dequeue | Removes and returns the object at the beginning of the QueueT. (Inherited from QueueT) |
Enqueue(T) | Adds an object to the end of the QueueT. (Inherited from QueueT) |
Enqueue(T, Boolean) | Adds an object to the end of this FixedQueueT. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator | Returns an enumerator that iterates through the QueueT. (Inherited from QueueT) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
Peek | Returns the object at the beginning of the QueueT without removing it. (Inherited from QueueT) |
ToArray | Copies the QueueT elements to a new array. (Inherited from QueueT) |
TrimExcess | Sets the capacity to the actual number of elements in the QueueT, if that number is less than 90 percent of current capacity. (Inherited from QueueT) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
DequeueT |
Removes and returns the specified amount of objects from the beginning of the QueueT.
(Defined by QueueExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
PeekT |
Returns the specified amount of objects from the beginning of the QueueT.
(Defined by QueueExtensions) |
ReverseT |
Inverts the order of the elements of the source QueueT.
(Defined by QueueExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |