Class ScopedCollection<T>.Scope
- Namespace
- Kampute.HttpClient.Utilities
- Assembly
- Kampute.HttpClient.dll
Represents a scope containing items within a specific context.
public sealed class ScopedCollection<T>.Scope : IDisposable
- Inheritance
-
ScopedCollection<T>.Scope
- Implements
- Inherited Members
Properties
Items
Gets the read-only collection of items in this scope.
public IReadOnlyCollection<T> Items { get; }
Property Value
- IReadOnlyCollection<T>
The read-only collection of items in this scope.
Owner
Gets the ScopedCollection<T> that owns this scope.
public ScopedCollection<T> Owner { get; }
Property Value
- ScopedCollection<T>
The ScopedCollection<T> instance that owns this scope.
Parent
Gets the parent scope of this instance, if any.
public ScopedCollection<T>.Scope? Parent { get; }
Property Value
- ScopedCollection<T>.Scope
The parent scope of this scope. It is null if there is no parent scope.
Methods
Dispose()
Disposes this scope, effectively removing it from the active context.
public void Dispose()