Click or drag to resize

SegmentedStackT Class

Implements a segmented stack of items, which functions like a regular StackT, but allows segments of the stack to be enumerated without including items pushed before the segment.
Inheritance Hierarchy
SystemObject
  Autofac.Core.ResolvingSegmentedStackT

Namespace:  Autofac.Core.Resolving
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public sealed class SegmentedStack<T> : IEnumerable<T>, 
	IEnumerable
where T : class

Type Parameters

T
The item type.

The SegmentedStackT type exposes the following members.

Constructors
  NameDescription
Public methodSegmentedStackT
Initializes a new instance of the SegmentedStackT class.
Top
Properties
  NameDescription
Public propertyCount
Gets the count of the items in the active segment.
Top
Methods
  NameDescription
Public methodEnterSegment
Enter a new segment. When this method returns Count will be zero, and the stack will appear empty.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPop
Pop the item at the top of the stack (and return it).
Public methodPush
Push an item onto the stack.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Top
See Also