Browse Source

Switched SetProperty to use the version present in .NET 3.5

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
0fe70400f2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Utilities/ReflectionUtil.cs

+ 1
- 1
IPA.Loader/Utilities/ReflectionUtil.cs View File

@ -70,7 +70,7 @@ namespace IPA.Utilities
public static void SetProperty<T>(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);
}
/// <summary>


Loading…
Cancel
Save