From 8b53700c5880ed9733d3d65f7561a7e76c4b7078 Mon Sep 17 00:00:00 2001 From: Drew Tingen Date: Tue, 14 Jul 2020 14:16:46 -0400 Subject: [PATCH] refactor: Use new property get/set extensions --- ICD.Common.Utils/Extensions/ReflectionExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ICD.Common.Utils/Extensions/ReflectionExtensions.cs b/ICD.Common.Utils/Extensions/ReflectionExtensions.cs index c0c4ae8..28e109d 100644 --- a/ICD.Common.Utils/Extensions/ReflectionExtensions.cs +++ b/ICD.Common.Utils/Extensions/ReflectionExtensions.cs @@ -190,7 +190,7 @@ namespace ICD.Common.Utils.Extensions if (info == null) return false; - currentObject = info.GetValue(currentObject, null); + currentObject = info.GetValue(currentObject); } //Set the property to the value @@ -203,7 +203,7 @@ namespace ICD.Common.Utils.Extensions if (finalPath == null) return false; - finalPath.SetValue(currentObject, value, null); + finalPath.SetValue(currentObject, value); return true; } @@ -234,7 +234,7 @@ namespace ICD.Common.Utils.Extensions .GetProperty(path[i]); if (info == null) return null; - currentObject = info.GetValue(currentObject, null); + currentObject = info.GetValue(currentObject); } //Set the property to the value @@ -277,7 +277,7 @@ namespace ICD.Common.Utils.Extensions if (info == null) return false; - currentObject = info.GetValue(currentObject, null); + currentObject = info.GetValue(currentObject); } //set the last value and return