.net 8 syntax/perf changes

This commit is contained in:
Asriel Camora
2024-03-15 01:28:58 -07:00
parent 836e983eb2
commit 94ea1f84de
20 changed files with 117 additions and 136 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ public class Macro
public string Name { get; set; } = string.Empty;
[JsonProperty(PropertyName = "Actions")]
private List<ActionType> actions { get; set; } = new();
private List<ActionType> actions { get; set; } = [];
[JsonIgnore]
public IReadOnlyList<ActionType> Actions
{
@@ -80,7 +80,7 @@ public class Configuration : IPluginConfiguration
public static event Action? OnMacroListChanged;
[JsonProperty(PropertyName = "Macros")]
private List<Macro> macros { get; set; } = new();
private List<Macro> macros { get; set; } = [];
[JsonIgnore]
public IReadOnlyList<Macro> Macros => macros;
public int ReliabilitySimulationCount { get; set; } = 500;