From 0ab9a9a3056384fb6740809b64901b44b9b770bf Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Mon, 4 Jan 2016 14:53:39 +0100 Subject: [PATCH] Remove WindowsBase type forwarders from mobile profile --- .../system/collections/objectmodel/observablecollection.cs | 4 ++++ .../collections/objectmodel/readonlyobservablecollection.cs | 2 ++ .../collections/specialized/inotifycollectionchanged.cs | 2 ++ .../specialized/notifycollectionchangedeventargs.cs | 6 ++++++ 4 files changed, 14 insertions(+) diff --git a/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs b/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs index 69f8a5c195e..6252f39f0b2 100644 --- a/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs +++ b/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs @@ -31,7 +31,9 @@ namespace System.Collections.ObjectModel /// #if !FEATURE_NETCORE [Serializable()] +#if !MOBILE [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] +#endif #endif public class ObservableCollection : Collection, INotifyCollectionChanged, INotifyPropertyChanged { @@ -385,7 +387,9 @@ namespace System.Collections.ObjectModel // this class helps prevent reentrant calls #if !FEATURE_NETCORE [Serializable()] +#if !MOBILE [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] +#endif #endif private class SimpleMonitor : IDisposable { diff --git a/mcs/class/referencesource/System/compmod/system/collections/objectmodel/readonlyobservablecollection.cs b/mcs/class/referencesource/System/compmod/system/collections/objectmodel/readonlyobservablecollection.cs index a1a28dd9e55..cf6a2bc23f7 100644 --- a/mcs/class/referencesource/System/compmod/system/collections/objectmodel/readonlyobservablecollection.cs +++ b/mcs/class/referencesource/System/compmod/system/collections/objectmodel/readonlyobservablecollection.cs @@ -25,7 +25,9 @@ namespace System.Collections.ObjectModel /// #if !FEATURE_NETCORE [Serializable()] +#if !MOBILE [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] +#endif #endif public class ReadOnlyObservableCollection : ReadOnlyCollection, INotifyCollectionChanged, INotifyPropertyChanged { diff --git a/mcs/class/referencesource/System/compmod/system/collections/specialized/inotifycollectionchanged.cs b/mcs/class/referencesource/System/compmod/system/collections/specialized/inotifycollectionchanged.cs index 41ad2c652b3..b59463d9bc5 100644 --- a/mcs/class/referencesource/System/compmod/system/collections/specialized/inotifycollectionchanged.cs +++ b/mcs/class/referencesource/System/compmod/system/collections/specialized/inotifycollectionchanged.cs @@ -20,7 +20,9 @@ namespace System.Collections.Specialized /// A collection implementing this interface will notify listeners of dynamic changes, /// e.g. when items get added and removed or the whole list is refreshed. /// +#if !MOBILE [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] +#endif public interface INotifyCollectionChanged { /// diff --git a/mcs/class/referencesource/System/compmod/system/collections/specialized/notifycollectionchangedeventargs.cs b/mcs/class/referencesource/System/compmod/system/collections/specialized/notifycollectionchangedeventargs.cs index 34c66fd490b..74eb0e1cdf1 100644 --- a/mcs/class/referencesource/System/compmod/system/collections/specialized/notifycollectionchangedeventargs.cs +++ b/mcs/class/referencesource/System/compmod/system/collections/specialized/notifycollectionchangedeventargs.cs @@ -20,7 +20,9 @@ namespace System.Collections.Specialized /// /// This enum describes the action that caused a CollectionChanged event. /// +#if !MOBILE [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] +#endif public enum NotifyCollectionChangedAction { /// One or more items were added to the collection. @@ -41,7 +43,9 @@ namespace System.Collections.Specialized /// whenever an item is added or removed, or when the contents of the collection /// changes dramatically. /// +#if !MOBILE [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] +#endif public class NotifyCollectionChangedEventArgs : EventArgs { //------------------------------------------------------ @@ -405,7 +409,9 @@ namespace System.Collections.Specialized /// /// The delegate to use for handlers that receive the CollectionChanged event. /// +#if !MOBILE [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] +#endif public delegate void NotifyCollectionChangedEventHandler(object sender, NotifyCollectionChangedEventArgs e); } -- 2.25.1