1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2025-04-10 11:15:45 +02:00

Initial refactor pass for .NET 6 ConditionalWeakTable

This commit is contained in:
Sergio Pedri 2021-11-25 15:51:52 +01:00
parent aaecb7176b
commit 65e6746c57
2 changed files with 335 additions and 454 deletions
CommunityToolkit.Mvvm/Messaging

View File

@ -8,7 +8,7 @@
using System.Threading;
using Microsoft.Collections.Extensions;
using CommunityToolkit.Mvvm.Messaging.Internals;
#if NETSTANDARD2_0
#if NETSTANDARD2_0 || NET6_0_OR_GREATER
using RecipientsTable = CommunityToolkit.Mvvm.Messaging.Internals.ConditionalWeakTable2<object, Microsoft.Collections.Extensions.IDictionarySlim>;
#else
using RecipientsTable = System.Runtime.CompilerServices.ConditionalWeakTable<object, Microsoft.Collections.Extensions.IDictionarySlim>;