diff options
Diffstat (limited to 'Xamarin.Forms.Core/NotifyCollectionChangedEventArgsEx.cs')
-rw-r--r-- | Xamarin.Forms.Core/NotifyCollectionChangedEventArgsEx.cs | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/NotifyCollectionChangedEventArgsEx.cs b/Xamarin.Forms.Core/NotifyCollectionChangedEventArgsEx.cs new file mode 100644 index 00000000..bb6a2b84 --- /dev/null +++ b/Xamarin.Forms.Core/NotifyCollectionChangedEventArgsEx.cs @@ -0,0 +1,65 @@ +using System.Collections; +using System.Collections.Specialized; + +namespace Xamarin.Forms +{ + internal class NotifyCollectionChangedEventArgsEx : NotifyCollectionChangedEventArgs + { + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action) : base(action) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems) : base(action, changedItems) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList newItems, IList oldItems) : base(action, newItems, oldItems) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex) : base(action, newItems, oldItems, startingIndex) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems, int startingIndex) : base(action, changedItems, startingIndex) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex) : base(action, changedItems, index, oldIndex) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object changedItem) : base(action, changedItem) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object changedItem, int index) : base(action, changedItem, index) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex) : base(action, changedItem, index, oldIndex) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object newItem, object oldItem) : base(action, newItem, oldItem) + { + Count = count; + } + + public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, object newItem, object oldItem, int index) : base(action, newItem, oldItem, index) + { + Count = count; + } + + public int Count { get; private set; } + } +}
\ No newline at end of file |