mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
fix: Fix get/set property extensions to work with deep properties
This commit is contained in:
@@ -150,11 +150,12 @@ namespace ICD.Common.Utils.Extensions
|
||||
for (int i = 0; i < path.Length - 1; i++)
|
||||
{
|
||||
PropertyInfo info =
|
||||
extends.GetType()
|
||||
currentObject.GetType()
|
||||
#if SIMPLSHARP
|
||||
.GetCType()
|
||||
#endif
|
||||
.GetProperty(path[i]);
|
||||
.GetProperty(path[i]);
|
||||
|
||||
if (info == null)
|
||||
return false;
|
||||
currentObject = info.GetValue(currentObject, null);
|
||||
@@ -197,11 +198,12 @@ namespace ICD.Common.Utils.Extensions
|
||||
foreach (string node in path)
|
||||
{
|
||||
PropertyInfo info =
|
||||
extends.GetType()
|
||||
currentObject.GetType()
|
||||
#if SIMPLSHARP
|
||||
.GetCType()
|
||||
.GetCType()
|
||||
#endif
|
||||
.GetProperty(node);
|
||||
.GetProperty(node);
|
||||
|
||||
if (info == null)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user