Skip to content

Commit 3522b26

Browse files
Copilotjaviercn
andcommitted
Fix boxing in PropertyGetter.CallPropertyGetter method to box value explicitly
Co-authored-by: javiercn <[email protected]>
1 parent a536852 commit 3522b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Components/src/Reflection/PropertyGetter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ public PropertyGetter(Type targetType, PropertyInfo property)
5353
object target)
5454
where TTarget : notnull
5555
{
56-
return Getter((TTarget)target);
56+
return (object?)Getter((TTarget)target);
5757
}
5858
}

0 commit comments

Comments
 (0)