From ca373846aa1304954fe46b5c2c72d8681efc011c Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Thu, 1 Mar 2012 14:39:50 +0000 Subject: [PATCH] Excluded ObservableSet and ReadOnlySet implementations from Xbox 360 and Windows Phone 7 builds because these platforms don't support the ISet interface git-svn-id: file:///srv/devel/repo-conversion/nusu@258 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/Collections/ObservableSet.cs | 4 ++++ Source/Collections/ReadOnlySet.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Source/Collections/ObservableSet.cs b/Source/Collections/ObservableSet.cs index 84d6c77..f142888 100644 --- a/Source/Collections/ObservableSet.cs +++ b/Source/Collections/ObservableSet.cs @@ -27,6 +27,8 @@ using System.Collections; using System.Collections.Specialized; #endif +#if !(WINDOWS_PHONE || XBOX360) + namespace Nuclex.Support.Collections { /// Set which fires events when items are removed or added to it @@ -309,3 +311,5 @@ namespace Nuclex.Support.Collections { } } // namespace Nuclex.Support.Collections + +#endif // !(WINDOWS_PHONE || XBOX360) diff --git a/Source/Collections/ReadOnlySet.cs b/Source/Collections/ReadOnlySet.cs index 9ef771c..f4dd1ca 100644 --- a/Source/Collections/ReadOnlySet.cs +++ b/Source/Collections/ReadOnlySet.cs @@ -22,6 +22,8 @@ using System; using System.Collections; using System.Collections.Generic; +#if !(WINDOWS_PHONE || XBOX360) + namespace Nuclex.Support.Collections { /// Wraps a set and prevents it from being modified @@ -210,3 +212,5 @@ namespace Nuclex.Support.Collections { } } // namespace Nuclex.Support.Collections + +#endif // !(WINDOWS_PHONE || XBOX360)