code cleanup

This commit is contained in:
rafael-aero
2021-09-15 11:14:45 +02:00
parent 664d5f7236
commit 51013d5825
37 changed files with 127 additions and 121 deletions

View File

@@ -16,7 +16,7 @@ namespace ElectronNET.API
public sealed class Dialog
{
private static Dialog _dialog;
private static object _syncRoot = new object();
private static readonly object _syncRoot = new();
internal Dialog() { }
@@ -225,7 +225,7 @@ namespace ElectronNET.API
return taskCompletionSource.Task;
}
private static JsonSerializer _jsonSerializer = new JsonSerializer()
private static readonly JsonSerializer _jsonSerializer = new()
{
ContractResolver = new CamelCasePropertyNamesContractResolver(),
NullValueHandling = NullValueHandling.Ignore,