From 7a543553b34cf60b04a4159f1cf031a0cf28fed3 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 14 Dec 2017 08:24:28 +0100 Subject: [PATCH] Allow using private constructor --- ArchiSteamFarm/IPC.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/IPC.cs b/ArchiSteamFarm/IPC.cs index 13613fd4e..d1a838fcb 100644 --- a/ArchiSteamFarm/IPC.cs +++ b/ArchiSteamFarm/IPC.cs @@ -362,7 +362,7 @@ namespace ArchiSteamFarm { object obj; try { - obj = Activator.CreateInstance(targetType); + obj = Activator.CreateInstance(targetType, true); } catch (Exception e) { await ResponseJsonObject(request, response, new GenericResponse(false, string.Format(Strings.ErrorParsingObject, targetType) + Environment.NewLine + e), HttpStatusCode.BadRequest).ConfigureAwait(false); return true;