diff --git a/CommunityToolkit.Common/Collections/IReadOnlyObservableGroup.cs b/CommunityToolkit.Mvvm/Collections/IReadOnlyObservableGroup.cs similarity index 61% rename from CommunityToolkit.Common/Collections/IReadOnlyObservableGroup.cs rename to CommunityToolkit.Mvvm/Collections/IReadOnlyObservableGroup.cs index 2519c5150..d7b9eda2b 100644 --- a/CommunityToolkit.Common/Collections/IReadOnlyObservableGroup.cs +++ b/CommunityToolkit.Mvvm/Collections/IReadOnlyObservableGroup.cs @@ -4,18 +4,15 @@ using System.ComponentModel; -namespace CommunityToolkit.Common.Collections; +namespace CommunityToolkit.Mvvm.Collections; /// /// An interface for a grouped collection of items. -/// It allows us to use x:Bind with and by providing -/// a non-generic type that we can declare using x:DataType. /// public interface IReadOnlyObservableGroup : INotifyPropertyChanged { /// - /// Gets the key for the current collection, as an . - /// It is immutable. + /// Gets the key for the current collection. /// object Key { get; } diff --git a/CommunityToolkit.Common/Collections/ObservableGroupedCollectionExtensions.cs b/CommunityToolkit.Mvvm/Collections/ObservableGroupedCollectionExtensions.cs similarity index 99% rename from CommunityToolkit.Common/Collections/ObservableGroupedCollectionExtensions.cs rename to CommunityToolkit.Mvvm/Collections/ObservableGroupedCollectionExtensions.cs index 2eba7012e..44a2b436e 100644 --- a/CommunityToolkit.Common/Collections/ObservableGroupedCollectionExtensions.cs +++ b/CommunityToolkit.Mvvm/Collections/ObservableGroupedCollectionExtensions.cs @@ -7,7 +7,7 @@ using System.Linq; using System.Runtime.CompilerServices; -namespace CommunityToolkit.Common.Collections; +namespace CommunityToolkit.Mvvm.Collections; /// /// The extensions methods to simplify the usage of . diff --git a/CommunityToolkit.Common/Collections/ObservableGroupedCollection.cs b/CommunityToolkit.Mvvm/Collections/ObservableGroupedCollection{TKey,TValue}.cs similarity index 97% rename from CommunityToolkit.Common/Collections/ObservableGroupedCollection.cs rename to CommunityToolkit.Mvvm/Collections/ObservableGroupedCollection{TKey,TValue}.cs index b62af5749..5c3da18b4 100644 --- a/CommunityToolkit.Common/Collections/ObservableGroupedCollection.cs +++ b/CommunityToolkit.Mvvm/Collections/ObservableGroupedCollection{TKey,TValue}.cs @@ -8,7 +8,7 @@ using System.Linq; using System.Runtime.CompilerServices; -namespace CommunityToolkit.Common.Collections; +namespace CommunityToolkit.Mvvm.Collections; /// /// An observable list of observable groups. diff --git a/CommunityToolkit.Common/Collections/ObservableGroup.cs b/CommunityToolkit.Mvvm/Collections/ObservableGroup{TKey,TValue}.cs similarity index 98% rename from CommunityToolkit.Common/Collections/ObservableGroup.cs rename to CommunityToolkit.Mvvm/Collections/ObservableGroup{TKey,TValue}.cs index 6bdd10d41..71fdf782f 100644 --- a/CommunityToolkit.Common/Collections/ObservableGroup.cs +++ b/CommunityToolkit.Mvvm/Collections/ObservableGroup{TKey,TValue}.cs @@ -8,7 +8,7 @@ using System.Diagnostics; using System.Linq; -namespace CommunityToolkit.Common.Collections; +namespace CommunityToolkit.Mvvm.Collections; /// /// An observable group. diff --git a/CommunityToolkit.Common/Collections/ReadOnlyObservableGroupedCollection.cs b/CommunityToolkit.Mvvm/Collections/ReadOnlyObservableGroupedCollection{TKey,TValue}.cs similarity index 99% rename from CommunityToolkit.Common/Collections/ReadOnlyObservableGroupedCollection.cs rename to CommunityToolkit.Mvvm/Collections/ReadOnlyObservableGroupedCollection{TKey,TValue}.cs index 3780b12bf..f5be9a2e6 100644 --- a/CommunityToolkit.Common/Collections/ReadOnlyObservableGroupedCollection.cs +++ b/CommunityToolkit.Mvvm/Collections/ReadOnlyObservableGroupedCollection{TKey,TValue}.cs @@ -9,7 +9,7 @@ using System.Diagnostics; using System.Linq; -namespace CommunityToolkit.Common.Collections; +namespace CommunityToolkit.Mvvm.Collections; /// /// A read-only list of groups. diff --git a/CommunityToolkit.Common/Collections/ReadOnlyObservableGroup.cs b/CommunityToolkit.Mvvm/Collections/ReadOnlyObservableGroup{TKey,TValue}.cs similarity index 97% rename from CommunityToolkit.Common/Collections/ReadOnlyObservableGroup.cs rename to CommunityToolkit.Mvvm/Collections/ReadOnlyObservableGroup{TKey,TValue}.cs index 3c86efc8a..304e7e54d 100644 --- a/CommunityToolkit.Common/Collections/ReadOnlyObservableGroup.cs +++ b/CommunityToolkit.Mvvm/Collections/ReadOnlyObservableGroup{TKey,TValue}.cs @@ -6,7 +6,7 @@ using System.Collections.ObjectModel; using System.Linq; -namespace CommunityToolkit.Common.Collections; +namespace CommunityToolkit.Mvvm.Collections; /// /// A read-only observable group. It associates a to a . diff --git a/tests/CommunityToolkit.Common.UnitTests/Collections/IntGroup.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/IntGroup.cs similarity index 89% rename from tests/CommunityToolkit.Common.UnitTests/Collections/IntGroup.cs rename to tests/CommunityToolkit.Mvvm.UnitTests/Collections/IntGroup.cs index 7ef0d446d..e76bee1da 100644 --- a/tests/CommunityToolkit.Common.UnitTests/Collections/IntGroup.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/IntGroup.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using System.Linq; -namespace CommunityToolkit.Common.UnitTests.Collections; +namespace CommunityToolkit.Mvvm.UnitTests; public class IntGroup : List, IGrouping { diff --git a/tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupTests.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupTests.cs similarity index 97% rename from tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupTests.cs rename to tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupTests.cs index 2ee14ba35..f25a8f1df 100644 --- a/tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupTests.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupTests.cs @@ -4,10 +4,10 @@ using System.Collections.Specialized; using System.Linq; -using CommunityToolkit.Common.Collections; +using CommunityToolkit.Mvvm.Collections; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace CommunityToolkit.Common.UnitTests.Collections; +namespace CommunityToolkit.Mvvm.UnitTests; [TestClass] public class ObservableGroupTests diff --git a/tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupedCollectionExtensionsTests.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupedCollectionExtensionsTests.cs similarity index 99% rename from tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupedCollectionExtensionsTests.cs rename to tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupedCollectionExtensionsTests.cs index f731d8473..43aa55afe 100644 --- a/tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupedCollectionExtensionsTests.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupedCollectionExtensionsTests.cs @@ -4,10 +4,10 @@ using System; using System.Linq; -using CommunityToolkit.Common.Collections; +using CommunityToolkit.Mvvm.Collections; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace CommunityToolkit.Common.UnitTests.Collections; +namespace CommunityToolkit.Mvvm.UnitTests; [TestClass] public class ObservableGroupedCollectionExtensionsTests diff --git a/tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupedCollectionTests.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupedCollectionTests.cs similarity index 92% rename from tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupedCollectionTests.cs rename to tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupedCollectionTests.cs index 1f1b015d0..9df27d94e 100644 --- a/tests/CommunityToolkit.Common.UnitTests/Collections/ObservableGroupedCollectionTests.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ObservableGroupedCollectionTests.cs @@ -4,10 +4,10 @@ using System.Collections.Generic; using System.Linq; -using CommunityToolkit.Common.Collections; +using CommunityToolkit.Mvvm.Collections; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace CommunityToolkit.Common.UnitTests.Collections; +namespace CommunityToolkit.Mvvm.UnitTests; [TestClass] public class ObservableGroupedCollectionTests diff --git a/tests/CommunityToolkit.Common.UnitTests/Collections/ReadOnlyObservableGroupTests.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ReadOnlyObservableGroupTests.cs similarity index 97% rename from tests/CommunityToolkit.Common.UnitTests/Collections/ReadOnlyObservableGroupTests.cs rename to tests/CommunityToolkit.Mvvm.UnitTests/Collections/ReadOnlyObservableGroupTests.cs index e028000f3..c85c025d6 100644 --- a/tests/CommunityToolkit.Common.UnitTests/Collections/ReadOnlyObservableGroupTests.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ReadOnlyObservableGroupTests.cs @@ -6,10 +6,10 @@ using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Linq; -using CommunityToolkit.Common.Collections; +using CommunityToolkit.Mvvm.Collections; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace CommunityToolkit.Common.UnitTests.Collections; +namespace CommunityToolkit.Mvvm.UnitTests; [TestClass] public class ReadOnlyObservableGroupTests diff --git a/tests/CommunityToolkit.Common.UnitTests/Collections/ReadOnlyObservableGroupedCollectionTests.cs b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ReadOnlyObservableGroupedCollectionTests.cs similarity index 99% rename from tests/CommunityToolkit.Common.UnitTests/Collections/ReadOnlyObservableGroupedCollectionTests.cs rename to tests/CommunityToolkit.Mvvm.UnitTests/Collections/ReadOnlyObservableGroupedCollectionTests.cs index 7ec3935ca..50a261c4a 100644 --- a/tests/CommunityToolkit.Common.UnitTests/Collections/ReadOnlyObservableGroupedCollectionTests.cs +++ b/tests/CommunityToolkit.Mvvm.UnitTests/Collections/ReadOnlyObservableGroupedCollectionTests.cs @@ -9,10 +9,10 @@ using System.Collections.Specialized; using System.ComponentModel; using System.Linq; -using CommunityToolkit.Common.Collections; +using CommunityToolkit.Mvvm.Collections; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace CommunityToolkit.Common.UnitTests.Collections; +namespace CommunityToolkit.Mvvm.UnitTests; [TestClass] public class ReadOnlyObservableGroupedCollectionTests