1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2025-08-16 05:31:46 +02:00
Files
.github
CommunityToolkit.Common
CommunityToolkit.Diagnostics
CommunityToolkit.HighPerformance
CommunityToolkit.Mvvm
CommunityToolkit.Mvvm.SourceGenerators
build
tests
CommunityToolkit.Common.UnitTests
CommunityToolkit.Diagnostics.UnitTests
CommunityToolkit.HighPerformance.UnitTests
CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests
CommunityToolkit.Mvvm.ExternalAssembly
CommunityToolkit.Mvvm.Internals.UnitTests
CommunityToolkit.Mvvm.SourceGenerators.UnitTests
CommunityToolkit.Mvvm.UnitTests
Collections
IntGroup.cs
Test_ObservableGroup.cs
Test_ObservableGroupedCollection.cs
Test_ObservableGroupedCollectionExtensions.cs
Test_ReadOnlyObservableGroup.cs
Test_ReadOnlyObservableGroupedCollection.cs
Helpers
CommunityToolkit.Mvvm.UnitTests.csproj
Test_ArgumentNullException.ComponentModel.cs
Test_ArgumentNullException.DependencyInjection.cs
Test_ArgumentNullException.Input.cs
Test_ArgumentNullException.Messaging.cs
Test_AsyncRelayCommand.cs
Test_AsyncRelayCommand{T}.cs
Test_INotifyPropertyChangedAttribute.cs
Test_IRecipientGenerator.cs
Test_Messenger.Request.cs
Test_Messenger.cs
Test_ObservableObject.cs
Test_ObservableObjectAttribute.cs
Test_ObservablePropertyAttribute.RootNamespace.cs
Test_ObservablePropertyAttribute.cs
Test_ObservableRecipient.cs
Test_ObservableRecipientAttribute.cs
Test_ObservableValidator.cs
Test_RelayCommand.cs
Test_RelayCommandAttribute.cs
Test_RelayCommand{T}.cs
Test_SourceGenerators.cs
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.runsettings
CODE_OF_CONDUCT.md
Contributing.md
Directory.Build.props
Directory.Build.targets
License.md
README.md
ThirdPartyNotices.txt
azure-pipelines.yml
dotnet Community Toolkit.sln
toolkit.snk
version.json
2022-04-06 22:48:56 +02:00

29 lines
928 B
C#

// 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.
using System.Collections.Generic;
using System.Linq;
namespace CommunityToolkit.Mvvm.UnitTests;
/// <summary>
/// A simple <see cref="IGrouping{TKey, TElement}"/> implementation for <see cref="string"/> and <see cref="int"/> values.
/// </summary>
internal sealed class IntGroup : List<int>, IGrouping<string, int>
{
/// <summary>
/// Creates a new <see cref="IntGroup"/> instance with the specified parameters.
/// </summary>
/// <param name="key">The group key.</param>
/// <param name="collection">The group values.</param>
public IntGroup(string key, IEnumerable<int> collection)
: base(collection)
{
Key = key;
}
/// <inheritdoc/>
public string Key { get; }
}