mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 05:35:07 +00:00
refactor: Use new property get/set extensions
This commit is contained in:
@@ -190,7 +190,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
|
|
||||||
if (info == null)
|
if (info == null)
|
||||||
return false;
|
return false;
|
||||||
currentObject = info.GetValue(currentObject, null);
|
currentObject = info.GetValue(currentObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the property to the value
|
//Set the property to the value
|
||||||
@@ -203,7 +203,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
if (finalPath == null)
|
if (finalPath == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
finalPath.SetValue(currentObject, value, null);
|
finalPath.SetValue(currentObject, value);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
.GetProperty(path[i]);
|
.GetProperty(path[i]);
|
||||||
if (info == null)
|
if (info == null)
|
||||||
return null;
|
return null;
|
||||||
currentObject = info.GetValue(currentObject, null);
|
currentObject = info.GetValue(currentObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the property to the value
|
//Set the property to the value
|
||||||
@@ -277,7 +277,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
if (info == null)
|
if (info == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
currentObject = info.GetValue(currentObject, null);
|
currentObject = info.GetValue(currentObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the last value and return
|
//set the last value and return
|
||||||
|
|||||||
Reference in New Issue
Block a user