diff options
author | Shockah <me@shockah.pl> | 2022-02-10 10:18:31 +0100 |
---|---|---|
committer | Shockah <me@shockah.pl> | 2022-02-10 10:18:31 +0100 |
commit | 955790842518d68ca5df21efe1beccc6069a35fe (patch) | |
tree | d0308e85152412b1cff9fceb231a78434c47ca70 /src/SMAPI | |
parent | 55723f91d270fa2623c25c0ca1decfa7e566b636 (diff) | |
download | SMAPI-955790842518d68ca5df21efe1beccc6069a35fe.tar.gz SMAPI-955790842518d68ca5df21efe1beccc6069a35fe.tar.bz2 SMAPI-955790842518d68ca5df21efe1beccc6069a35fe.zip |
fix code style warning
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs b/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs index 3c6d7c61..9573c791 100644 --- a/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs +++ b/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs @@ -66,7 +66,7 @@ namespace StardewModdingAPI.Framework.Reflection il.Emit(OpCodes.Ldarg_0); // this // ReSharper disable once AssignNullToNotNullAttribute -- never null - il.Emit(OpCodes.Call, typeof(object).GetConstructor(new Type[0])); // call base constructor + il.Emit(OpCodes.Call, typeof(object).GetConstructor(Array.Empty<Type>())); // call base constructor il.Emit(OpCodes.Ldarg_0); // this il.Emit(OpCodes.Ldarg_1); // load argument il.Emit(OpCodes.Stfld, targetField); // set field to loaded argument |