Table of Contents

Struct FastTrackingCollectionChangedEventArgs

Namespace
Stride.Core.Collections
Assembly
Stride.Core.dll
public struct FastTrackingCollectionChangedEventArgs
Inherited Members

Constructors

FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object, int, bool)

public FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction action, object item, object oldItem, int index = -1, bool collectionChanged = false)

Parameters

action NotifyCollectionChangedAction
item object
oldItem object
index int
collectionChanged bool

FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object, object, bool)

public FastTrackingCollectionChangedEventArgs(NotifyCollectionChangedAction action, object key, object item, object oldItem, bool collectionChanged = false)

Parameters

action NotifyCollectionChangedAction
key object
item object
oldItem object
collectionChanged bool

Properties

Action

Gets the type of action performed. Allowed values are Add and Remove.

public readonly NotifyCollectionChangedAction Action { get; }

Property Value

NotifyCollectionChangedAction

CollectionChanged

Gets a value indicating whether [collection changed (not a replacement but real insertion/removal)].

public readonly bool CollectionChanged { get; }

Property Value

bool

true if [collection changed]; otherwise, false.

Index

Gets the index in the collection (if applicable).

public readonly int Index { get; }

Property Value

int

Item

Gets the added or removed item (if dictionary, value only).

public readonly object Item { get; }

Property Value

object

Key

Gets the added or removed key (if dictionary).

public readonly object Key { get; }

Property Value

object

OldItem

Gets the previous value. Only valid if Action is Add and Remove

public readonly object OldItem { get; }

Property Value

object