FixedStackT Class

Represents a StackT with a fixed capacity.

Definition

Namespace: DevCase.Runtime.Collections
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[SerializableAttribute]
[XmlRootAttribute("FixedStack")]
public sealed class FixedStack<T> : Stack<T>
Inheritance
Object    StackT    FixedStackT

Type Parameters

T
The type of the stack items.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

FixedStackT Initializes a new instance of the FixedStackT class.

Properties

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.

Methods

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)

Extension Methods

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)

See Also