Skip to content

Commit

Permalink
Merge pull request #63 from zerodev1200/#58
Browse files Browse the repository at this point in the history
Fix #58 IsCompatibleObject
  • Loading branch information
neuecc authored Aug 28, 2024
2 parents 9109711 + cb0cf8b commit 3488094
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,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 3488094

Please sign in to comment.