Remove WindowsBase type forwarders from mobile profile
authorMarek Safar <marek.safar@gmail.com>
Mon, 4 Jan 2016 13:53:39 +0000 (14:53 +0100)
committerMarek Safar <marek.safar@gmail.com>
Tue, 3 May 2016 09:42:38 +0000 (11:42 +0200)
mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs
mcs/class/referencesource/System/compmod/system/collections/objectmodel/readonlyobservablecollection.cs
mcs/class/referencesource/System/compmod/system/collections/specialized/inotifycollectionchanged.cs
mcs/class/referencesource/System/compmod/system/collections/specialized/notifycollectionchangedeventargs.cs

index 69f8a5c195eeff566084b1521e9fac1f229198d6..6252f39f0b22f05479aee3eb3d71daf76ff2f9d4 100644 (file)
@@ -31,7 +31,9 @@ namespace System.Collections.ObjectModel
     /// </summary>
 #if !FEATURE_NETCORE
     [Serializable()]
+#if !MOBILE
     [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
+#endif
 #endif
     public class ObservableCollection<T> : Collection<T>, 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
         {
index a1a28dd9e5565bc81f5f900b3f57c82d5fa93a5a..cf6a2bc23f7904cba6a125b9a84674bb0fbedb33 100644 (file)
@@ -25,7 +25,9 @@ namespace System.Collections.ObjectModel
     /// </summary>
 #if !FEATURE_NETCORE
     [Serializable()]
+#if !MOBILE
     [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
+#endif
 #endif
     public class ReadOnlyObservableCollection<T> : ReadOnlyCollection<T>, INotifyCollectionChanged, INotifyPropertyChanged
     {
index 41ad2c652b358fdd3afc47b5efa0f6fa73f30e83..b59463d9bc56796d61e95c4c80e3e83c71515a62 100644 (file)
@@ -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.
     /// </summary>
+#if !MOBILE
     [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
+#endif
     public interface INotifyCollectionChanged
     {
         /// <summary>
index 34c66fd490b57f603cf0a0c1803565ac9f9c6c1e..74eb0e1cdf151dc96bd5d5da3c02eb45add94db9 100644 (file)
@@ -20,7 +20,9 @@ namespace System.Collections.Specialized
     /// <summary>
     /// This enum describes the action that caused a CollectionChanged event.
     /// </summary>
+#if !MOBILE
     [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
+#endif
     public enum NotifyCollectionChangedAction
     {
         /// <summary> One or more items were added to the collection. </summary>
@@ -41,7 +43,9 @@ namespace System.Collections.Specialized
     /// whenever an item is added or removed, or when the contents of the collection
     /// changes dramatically.
     /// </summary>
+#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
     /// <summary>
     ///     The delegate to use for handlers that receive the CollectionChanged event.
     /// </summary>
+#if !MOBILE
     [TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
+#endif
     public delegate void NotifyCollectionChangedEventHandler(object sender, NotifyCollectionChangedEventArgs e);
 
 }