ReactiveList.AsSpan() method¶
Defined in
Type: ReactiveListReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public ReadOnlySpan<T> AsSpan()
View source (opens in a new tab)
Summary: Gets a read-only span over a snapshot of the items.
Returns: ReadOnlySpan
Remarks
The span is a point-in-time view. It never changes and never throws when other threads mutate the list, but it also
never shows those later mutations: call this method again to see them. Calls made with no mutation in between return
the same shared snapshot without copying. The snapshot must be treated as read-only.