Merge pull request #63 from zerodev1200/#58

Fix #58 IsCompatibleObject
This commit is contained in:
Yoshifumi Kawai 2024-08-28 16:03:57 +09:00 committed by GitHub
commit 3488094882
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ namespace ObservableCollections.Internal
static bool IsCompatibleObject(object? value)
{
return (value is T) || (value == null && default(T) == null);
return (value is TView) || (value is T) || (value == null && default(T) == null);
}
public bool IsReadOnly => true;