mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 05:34:48 +00:00
fix: added usings, simplified imports, using JsonElement.Deserialize directly instead of JsonSerializer.Deserialize(JsonElement), removed some unused attributes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
namespace ElectronNET.API
|
||||
{
|
||||
using ElectronNET.API.Serialization;
|
||||
using ElectronNET.Common;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
@@ -159,7 +160,7 @@
|
||||
{
|
||||
try
|
||||
{
|
||||
var value = JsonSerializer.Deserialize<T>(result, Serialization.ElectronJson.Options);
|
||||
var value = result.Deserialize<T>(ElectronJson.Options);
|
||||
this.tcs?.SetResult(value);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user