From c6752687845843d2cdd047add5e6c2ac34db7353 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Sat, 10 Feb 2024 14:30:01 +0200 Subject: [PATCH] chore: Avoid redundant type check --- src/Uno.UI/UI/Xaml/DependencyObjectStore.Binder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/DependencyObjectStore.Binder.cs b/src/Uno.UI/UI/Xaml/DependencyObjectStore.Binder.cs index 376d1a723f0f..5c8c4102938b 100644 --- a/src/Uno.UI/UI/Xaml/DependencyObjectStore.Binder.cs +++ b/src/Uno.UI/UI/Xaml/DependencyObjectStore.Binder.cs @@ -102,7 +102,7 @@ private bool IsCandidateChild([NotNullWhen(true)] object? child) // The property value may be an enumerable of providers var isValidEnumerable = child is not string; - return isValidEnumerable && child is IList or IEnumerable; + return isValidEnumerable && child is IEnumerable; } private void ApplyChildrenBindable(object? inheritedValue, bool isTemplatedParent)