Fix #58 IsCompatibleObject

This commit is contained in:
zero 2024-08-27 23:20:00 +09:00
parent d7fac361bd
commit cb0cf8b386

View File

@ -169,7 +169,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;