ScopedCollection<T>.Scope Class
- Namespace
- Kampute.HttpClient.Utilities
- Assembly
- Kampute.HttpClient.dll
Definition
Represents a scope of a ScopedCollection<T>, which ends when it is disposed.
public sealed class ScopedCollection<T>.Scope : IDisposable- Inheritance
- object
- ScopedCollection<T>.Scope
- Implements
Type Parameters
T
Properties
Items
Gets the items of the scope.
public IReadOnlyCollection<T> Items { get; }Property Value
- IReadOnlyCollection<T>
- The items of this scope.
Owner
Gets the collection that the scope belongs to.
public ScopedCollection<T> Owner { get; }Property Value
- ScopedCollection<T>
- The ScopedCollection<T> of this scope.
Parent
Gets the enclosing scope.
public ScopedCollection<T>.Scope Parent { get; }Property Value
- ScopedCollection<T>.Scope
- The scope that was active when this scope began, or
nullif there was none.
Methods
Dispose()
Ends the scope.
public void Dispose()
