// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // ------------------------------------------------------------------------------ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ namespace System.Collections.ObjectModel { public abstract partial class KeyedCollection : System.Collections.ObjectModel.Collection { protected KeyedCollection() { } protected KeyedCollection(System.Collections.Generic.IEqualityComparer comparer) { } protected KeyedCollection(System.Collections.Generic.IEqualityComparer comparer, int dictionaryCreationThreshold) { } public System.Collections.Generic.IEqualityComparer Comparer { get { return default(System.Collections.Generic.IEqualityComparer); } } protected System.Collections.Generic.IDictionary Dictionary { get { return default(System.Collections.Generic.IDictionary); } } public TItem this[TKey key] { get { return default(TItem); } } protected void ChangeItemKey(TItem item, TKey newKey) { } protected override void ClearItems() { } public bool Contains(TKey key) { return default(bool); } protected abstract TKey GetKeyForItem(TItem item); protected override void InsertItem(int index, TItem item) { } public bool Remove(TKey key) { return default(bool); } protected override void RemoveItem(int index) { } protected override void SetItem(int index, TItem item) { } } public partial class ObservableCollection : System.Collections.ObjectModel.Collection, System.Collections.Specialized.INotifyCollectionChanged, System.ComponentModel.INotifyPropertyChanged { public ObservableCollection() { } public ObservableCollection(System.Collections.Generic.IEnumerable collection) { } public virtual event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged { add { } remove { } } protected virtual event System.ComponentModel.PropertyChangedEventHandler PropertyChanged { add { } remove { } } event System.ComponentModel.PropertyChangedEventHandler System.ComponentModel.INotifyPropertyChanged.PropertyChanged { add { } remove { } } protected System.IDisposable BlockReentrancy() { return default(System.IDisposable); } protected void CheckReentrancy() { } protected override void ClearItems() { } protected override void InsertItem(int index, T item) { } public void Move(int oldIndex, int newIndex) { } protected virtual void MoveItem(int oldIndex, int newIndex) { } protected virtual void OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { } protected virtual void OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs e) { } protected override void RemoveItem(int index) { } protected override void SetItem(int index, T item) { } } public partial class ReadOnlyDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable { public ReadOnlyDictionary(System.Collections.Generic.IDictionary dictionary) { } public int Count { get { return default(int); } } protected System.Collections.Generic.IDictionary Dictionary { get { return default(System.Collections.Generic.IDictionary); } } public TValue this[TKey key] { get { return default(TValue); } } public System.Collections.ObjectModel.ReadOnlyDictionary.KeyCollection Keys { get { return default(System.Collections.ObjectModel.ReadOnlyDictionary.KeyCollection); } } bool System.Collections.Generic.ICollection>.IsReadOnly { get { return default(bool); } } TValue System.Collections.Generic.IDictionary.this[TKey key] { get { return default(TValue); } set { } } System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Keys { get { return default(System.Collections.Generic.ICollection); } } System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Values { get { return default(System.Collections.Generic.ICollection); } } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get { return default(System.Collections.Generic.IEnumerable); } } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get { return default(System.Collections.Generic.IEnumerable); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } bool System.Collections.IDictionary.IsFixedSize { get { return default(bool); } } bool System.Collections.IDictionary.IsReadOnly { get { return default(bool); } } object System.Collections.IDictionary.this[object key] { get { return default(object); } set { } } System.Collections.ICollection System.Collections.IDictionary.Keys { get { return default(System.Collections.ICollection); } } System.Collections.ICollection System.Collections.IDictionary.Values { get { return default(System.Collections.ICollection); } } public System.Collections.ObjectModel.ReadOnlyDictionary.ValueCollection Values { get { return default(System.Collections.ObjectModel.ReadOnlyDictionary.ValueCollection); } } public bool ContainsKey(TKey key) { return default(bool); } public System.Collections.Generic.IEnumerator> GetEnumerator() { return default(System.Collections.Generic.IEnumerator>); } void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair item) { } void System.Collections.Generic.ICollection>.Clear() { } bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) { return default(bool); } void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) { } bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) { return default(bool); } void System.Collections.Generic.IDictionary.Add(TKey key, TValue value) { } bool System.Collections.Generic.IDictionary.Remove(TKey key) { return default(bool); } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } void System.Collections.IDictionary.Add(object key, object value) { } void System.Collections.IDictionary.Clear() { } bool System.Collections.IDictionary.Contains(object key) { return default(bool); } System.Collections.IDictionaryEnumerator System.Collections.IDictionary.GetEnumerator() { return default(System.Collections.IDictionaryEnumerator); } void System.Collections.IDictionary.Remove(object key) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } public bool TryGetValue(TKey key, out TValue value) { value = default(TValue); return default(bool); } public sealed partial class KeyCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.ICollection, System.Collections.IEnumerable { internal KeyCollection() { } public int Count { get { return default(int); } } bool System.Collections.Generic.ICollection.IsReadOnly { get { return default(bool); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } public void CopyTo(TKey[] array, int arrayIndex) { } public System.Collections.Generic.IEnumerator GetEnumerator() { return default(System.Collections.Generic.IEnumerator); } void System.Collections.Generic.ICollection.Add(TKey item) { } void System.Collections.Generic.ICollection.Clear() { } bool System.Collections.Generic.ICollection.Contains(TKey item) { return default(bool); } bool System.Collections.Generic.ICollection.Remove(TKey item) { return default(bool); } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } } public sealed partial class ValueCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.ICollection, System.Collections.IEnumerable { internal ValueCollection() { } public int Count { get { return default(int); } } bool System.Collections.Generic.ICollection.IsReadOnly { get { return default(bool); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } public void CopyTo(TValue[] array, int arrayIndex) { } public System.Collections.Generic.IEnumerator GetEnumerator() { return default(System.Collections.Generic.IEnumerator); } void System.Collections.Generic.ICollection.Add(TValue item) { } void System.Collections.Generic.ICollection.Clear() { } bool System.Collections.Generic.ICollection.Contains(TValue item) { return default(bool); } bool System.Collections.Generic.ICollection.Remove(TValue item) { return default(bool); } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } } } public partial class ReadOnlyObservableCollection : System.Collections.ObjectModel.ReadOnlyCollection, System.Collections.Specialized.INotifyCollectionChanged, System.ComponentModel.INotifyPropertyChanged { public ReadOnlyObservableCollection(System.Collections.ObjectModel.ObservableCollection list) : base(default(System.Collections.Generic.IList)) { } protected virtual event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged { add { } remove { } } protected virtual event System.ComponentModel.PropertyChangedEventHandler PropertyChanged { add { } remove { } } event System.Collections.Specialized.NotifyCollectionChangedEventHandler System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged { add { } remove { } } event System.ComponentModel.PropertyChangedEventHandler System.ComponentModel.INotifyPropertyChanged.PropertyChanged { add { } remove { } } protected virtual void OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args) { } protected virtual void OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs args) { } } } namespace System.Collections.Specialized { public partial interface INotifyCollectionChanged { event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged; } public enum NotifyCollectionChangedAction { Add = 0, Move = 3, Remove = 1, Replace = 2, Reset = 4, } public partial class NotifyCollectionChangedEventArgs : System.EventArgs { public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList newItems, System.Collections.IList oldItems) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList newItems, System.Collections.IList oldItems, int startingIndex) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems, int startingIndex) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, System.Collections.IList changedItems, int index, int oldIndex) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem, int index) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object newItem, object oldItem) { } public NotifyCollectionChangedEventArgs(System.Collections.Specialized.NotifyCollectionChangedAction action, object newItem, object oldItem, int index) { } public System.Collections.Specialized.NotifyCollectionChangedAction Action { get { return default(System.Collections.Specialized.NotifyCollectionChangedAction); } } public System.Collections.IList NewItems { get { return default(System.Collections.IList); } } public int NewStartingIndex { get { return default(int); } } public System.Collections.IList OldItems { get { return default(System.Collections.IList); } } public int OldStartingIndex { get { return default(int); } } } public delegate void NotifyCollectionChangedEventHandler(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e); } namespace System.ComponentModel { public partial class DataErrorsChangedEventArgs : System.EventArgs { public DataErrorsChangedEventArgs(string propertyName) { } public virtual string PropertyName { get { return default(string); } } } public partial interface INotifyDataErrorInfo { bool HasErrors { get; } event System.EventHandler ErrorsChanged; System.Collections.IEnumerable GetErrors(string propertyName); } public partial interface INotifyPropertyChanged { event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; } public partial interface INotifyPropertyChanging { event System.ComponentModel.PropertyChangingEventHandler PropertyChanging; } public partial class PropertyChangedEventArgs : System.EventArgs { public PropertyChangedEventArgs(string propertyName) { } public virtual string PropertyName { get { return default(string); } } } public delegate void PropertyChangedEventHandler(object sender, System.ComponentModel.PropertyChangedEventArgs e); public partial class PropertyChangingEventArgs : System.EventArgs { public PropertyChangingEventArgs(string propertyName) { } public virtual string PropertyName { get { return default(string); } } } public delegate void PropertyChangingEventHandler(object sender, System.ComponentModel.PropertyChangingEventArgs e); } namespace System.Windows.Input { public partial interface ICommand { event System.EventHandler CanExecuteChanged; bool CanExecute(object parameter); void Execute(object parameter); } }