Class LimitedSizeStack<T>
LinkedList with a limited size If the size exceeds the limit older entry are removed
Inheritance
System.Object
System.Collections.Generic.LinkedList<T>
LimitedSizeStack<T>
Implements
System.Collections.Generic.ICollection<T>
System.Collections.ICollection
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Collections.Generic.LinkedList<T>.System.Collections.Generic.ICollection<T>.Add(T)
System.Collections.Generic.LinkedList<T>.AddAfter(System.Collections.Generic.LinkedListNode<T>, T)
System.Collections.Generic.LinkedList<T>.AddAfter(System.Collections.Generic.LinkedListNode<T>, System.Collections.Generic.LinkedListNode<T>)
System.Collections.Generic.LinkedList<T>.AddBefore(System.Collections.Generic.LinkedListNode<T>, T)
System.Collections.Generic.LinkedList<T>.AddBefore(System.Collections.Generic.LinkedListNode<T>, System.Collections.Generic.LinkedListNode<T>)
System.Collections.Generic.LinkedList<T>.AddFirst(T)
System.Collections.Generic.LinkedList<T>.AddFirst(System.Collections.Generic.LinkedListNode<T>)
System.Collections.Generic.LinkedList<T>.AddLast(T)
System.Collections.Generic.LinkedList<T>.AddLast(System.Collections.Generic.LinkedListNode<T>)
System.Collections.Generic.LinkedList<T>.Clear()
System.Collections.Generic.LinkedList<T>.Contains(T)
System.Collections.Generic.LinkedList<T>.CopyTo(T[], System.Int32)
System.Collections.Generic.LinkedList<T>.Find(T)
System.Collections.Generic.LinkedList<T>.FindLast(T)
System.Collections.Generic.LinkedList<T>.GetEnumerator()
System.Collections.Generic.LinkedList<T>.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
System.Collections.Generic.LinkedList<T>.Remove(T)
System.Collections.Generic.LinkedList<T>.Remove(System.Collections.Generic.LinkedListNode<T>)
System.Collections.Generic.LinkedList<T>.RemoveFirst()
System.Collections.Generic.LinkedList<T>.RemoveLast()
System.Collections.Generic.LinkedList<T>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.LinkedList<T>.OnDeserialization(System.Object)
System.Collections.Generic.LinkedList<T>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.LinkedList<T>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.LinkedList<T>.Count
System.Collections.Generic.LinkedList<T>.First
System.Collections.Generic.LinkedList<T>.Last
System.Collections.Generic.LinkedList<T>.System.Collections.Generic.ICollection<T>.IsReadOnly
System.Collections.Generic.LinkedList<T>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.LinkedList<T>.System.Collections.ICollection.SyncRoot
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RateLimiter
Assembly: RateLimiter.dll
Syntax
public class LimitedSizeStack<T> : LinkedList<T>, ICollection<T>, ICollection, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, ISerializable, IDeserializationCallback
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceLimitedSizeStack(Int32)
Construct the LimitedSizeStack with the given limit
Declaration
public LimitedSizeStack(int maxSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxSize |
Methods
| Improve this Doc View SourcePush(T)
Push new entry. If he size exceeds the limit, the oldest entry is removed
Declaration
public void Push(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Implements
System.Collections.Generic.ICollection<T>
System.Collections.ICollection
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback