Click or drag to resize
ExpiringCollectionTItemCountChangedDelegate Property
Gets or sets an optional delegate that is called when the count changes. The new count is passed to the delegate. The list is locked to the calling thread while the delegate is running. The delegate will occasionally be called on a background thread.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public Action<int> CountChangedDelegate { get; set; }

Property Value

Type: ActionInt32
Remarks

If you set this property to null just before the list calls it then the list may still go through with the call. Your delegate can be called while this property is null.

The intention here is to provide a way for owners of the list to quickly update a counter somewhere when the list count changes. It is not intended for anything more than that. If you modify the list from within the delegate then you will not get recursive calls to the delegate.

See Also