Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ NotifyCollectionChangedEventArgs() [3/11]

System.Collections.Specialized.NotifyCollectionChangedEventArgs.NotifyCollectionChangedEventArgs ( NotifyCollectionChangedAction action,
object? changedItem,
int index )
inline

Definition at line 39 of file NotifyCollectionChangedEventArgs.cs.

40 {
41 switch (action)
42 {
44 if (changedItem != null)
45 {
47 }
48 if (index != -1)
49 {
51 }
52 break;
54 _newItems = new SingleItemReadOnlyList(changedItem);
56 break;
58 _oldItems = new SingleItemReadOnlyList(changedItem);
60 break;
61 default:
63 }
65 }
static string MustBeResetAddOrRemoveActionForCtor
Definition SR.cs:34
static string ResetActionRequiresIndexMinus1
Definition SR.cs:38
static string ResetActionRequiresNullItem
Definition SR.cs:36
Definition SR.cs:7

References System.Collections.Specialized.NotifyCollectionChangedEventArgs._action, System.Collections.Specialized.NotifyCollectionChangedEventArgs._newItems, System.Collections.Specialized.NotifyCollectionChangedEventArgs._newStartingIndex, System.Collections.Specialized.NotifyCollectionChangedEventArgs._oldItems, System.Collections.Specialized.NotifyCollectionChangedEventArgs._oldStartingIndex, System.action, System.index, System.SR.MustBeResetAddOrRemoveActionForCtor, System.SR.ResetActionRequiresIndexMinus1, and System.SR.ResetActionRequiresNullItem.