Make it possible to gather values using scoped ItemConfiguration

This commit is contained in:
TheXamlGuy
2024-06-05 22:22:06 +01:00
parent 29509e9d7a
commit cc79be9acc
7 changed files with 27 additions and 9 deletions
@@ -0,0 +1,7 @@
namespace Toolkit.Foundation;
public static class ICollectionSynchronizationExtensions
{
public static int IndexOf<TItem>(this ICollectionSynchronization<TItem> synchronization,
TItem item) => synchronization is IList<TItem> collection ? collection.IndexOf(item) : -1;
}