Browse Source

Switched SetProperty to use the version present in .NET 3.5

4.0.0-beta
Anairkoen Schno 4 years ago
parent
commit
5aaee9808e
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