[SerializableAttribute]
[XmlRootAttribute("FixedStack")]
public sealed class FixedStack<T> : Stack<T>
<SerializableAttribute>
<XmlRootAttribute("FixedStack")>
Public NotInheritable Class FixedStack(Of T)
Inherits Stack(Of T)
Dim instance As FixedStack(Of T)
[SerializableAttribute]
[XmlRootAttribute(L"FixedStack")]
generic<typename T>
public ref class FixedStack sealed : public Stack<T>
[<SealedAttribute>]
[<SerializableAttribute>]
[<XmlRootAttribute("FixedStack")>]
type FixedStack<'T> =
class
inherit Stack<'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 stack As New FixedStack(Of Integer)(maxCapacity:=5)
For x As Integer = 0 To 10
stack.Push(x)
Next
For Each value As Integer In stack
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.
FixedStackT | Initializes a new instance of the FixedStackT class. |
Count | Gets the number of elements contained in the StackT. (Inherited from StackT) |
FreeSlots | Gets the amount of free slots onto this FixedStackT. |
IsEmpty | Gets a value indicating whether this FixedStackT is empty. |
IsFull | Gets a value indicating whether this FixedStackT is full. |
MaxCapacity | Gets the maximum capacity of this FixedStackT, bottom items beyond the specified capacity are discarded when a new item is pushed. |
Clear | Removes all objects from the StackT. (Inherited from StackT) |
Contains | Determines whether an element is in the StackT. (Inherited from StackT) |
CopyTo | Copies the StackT to an existing one-dimensional Array, starting at the specified array index. (Inherited from StackT) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator | Returns an enumerator for the StackT. (Inherited from StackT) |
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 top of the StackT without removing it. (Inherited from StackT) |
Pop | Removes and returns the object at the top of the StackT. (Inherited from StackT) |
Push(T) | Inserts an object at the top of the StackT. (Inherited from StackT) |
Push(T, Boolean) | Inserts an object at the top of this FixedStackT. |
ToArray | Copies the StackT to a new array. (Inherited from StackT) |
TrimExcess | Sets the capacity to the actual number of elements in the StackT, if that number is less than 90 percent of current capacity. (Inherited from StackT) |
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) |
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 top of the StackT.
(Defined by StackExtensions) |
PopT |
Removes and returns the specified amount of objects from the top of the StackT.
(Defined by StackExtensions) |
ReverseT |
Inverts the order of the elements of the source StackT.
(Defined by StackExtensions) |
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) |