mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Allow using private constructor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user