Class StreamScope
- Per-stream state container carried by Delta.
- Stores typed state objects internally (hidden object usage).
- States must be mutated, not replaced.
Assembly: Glitch9.IO.dll
Syntax
public sealed class StreamScope
Methods
|
Edit this page
View Source
GetOrCreateState<TState>()
Declaration
public TState GetOrCreateState<TState>() where TState : class, new()
Returns
Type Parameters
|
Edit this page
View Source
GetState<TState>()
Declaration
public TState GetState<TState>() where TState : class
Returns
Type Parameters
|
Edit this page
View Source
SetState<TState>(TState)
Use only for advanced cases. Prefer GetOrCreate/GetRequired.
Declaration
public void SetState<TState>(TState instance) where TState : class
Parameters
| Type |
Name |
Description |
| TState |
instance |
|
Type Parameters
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Extension Methods