From 5aaee9808edfd76c6ada1a60c2313bd92ccae2c2 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Wed, 4 Dec 2019 17:18:54 -0600 Subject: [PATCH] Switched SetProperty to use the version present in .NET 3.5 --- IPA.Loader/Utilities/ReflectionUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA.Loader/Utilities/ReflectionUtil.cs b/IPA.Loader/Utilities/ReflectionUtil.cs index 451437bf..d7d1af24 100644 --- a/IPA.Loader/Utilities/ReflectionUtil.cs +++ b/IPA.Loader/Utilities/ReflectionUtil.cs @@ -70,7 +70,7 @@ namespace IPA.Utilities public static void SetProperty(this T obj, string propertyName, object value) where T : class { var prop = typeof(T).GetProperty(propertyName, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); - prop?.SetValue(obj, value); + prop?.SetValue(obj, value, null); } ///