Skip to content

Commit 85c61f6

Browse files
committed
Fix TryRentProperty issue.
1 parent 02e2c14 commit 85c61f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/UnityMvvmToolkit.Core/BindingContextObjectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public bool TryRentProperty<TValueType>(IBindingContext context, PropertyBinding
9292

9393
var baseProperty = memberInfo.GetMemberValue<IBaseProperty>(context, out _);
9494

95-
if (baseProperty is IProperty<TValueType>)
95+
if (baseProperty is IProperty)
9696
{
9797
property = _objectWrapperHandler
9898
.GetProperty<IProperty<TValueType>, TValueType>(context, bindingData, memberInfo);

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/Core/BindingContextObjectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public bool TryRentProperty<TValueType>(IBindingContext context, PropertyBinding
9292

9393
var baseProperty = memberInfo.GetMemberValue<IBaseProperty>(context, out _);
9494

95-
if (baseProperty is IProperty<TValueType>)
95+
if (baseProperty is IProperty)
9696
{
9797
property = _objectWrapperHandler
9898
.GetProperty<IProperty<TValueType>, TValueType>(context, bindingData, memberInfo);

0 commit comments

Comments
 (0)