Skip to content

QuaternaryList.Version property

Defined in

Type: QuaternaryList Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

public long Version { get; }

View source (opens in a new tab)

Summary: Gets the current version number of the collection, which is incremented on each modification.

Returns: long (opens in a new tab)

Remarks

This property can be used for efficient change detection without acquiring locks. Changes made while nobody observes the collection are counted per shard, so the value only ever grows and changes with every modification.