Skip to content

Commit

Permalink
Fix #58 IsCompatibleObject
Browse files Browse the repository at this point in the history
  • Loading branch information
zero committed Aug 27, 2024
1 parent d7fac36 commit cb0cf8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public TView this[int index]

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;
Expand Down

0 comments on commit cb0cf8b

Please sign in to comment.