Applied some C#12 stuff

This commit is contained in:
DarthAffe committed 2023-12-22 20:56:56 +01:00
1 parent 0444730aca
commit d85f1559b3
105 files changed
+329 -422

No files matched your search

@@ -1,19 +1,10 @@
namespace RGB.NET.Devices.SteelSeries;
internal sealed class APIName : System.Attribute
internal sealed class APIName(string name) : System.Attribute
{
#region Properties & Fields
public string Name { get; set; }
#endregion
#region Constructors
public APIName(string name)
{
this.Name = name;
}
public string Name { get; set; } = name;
#endregion
}
@@ -10,8 +10,8 @@ internal static class SteelSeriesEnumExtension
#region Properties & Fields
// ReSharper disable InconsistentNaming
private static readonly Dictionary<SteelSeriesDeviceType, string?> _deviceTypeNames = new();
private static readonly Dictionary<SteelSeriesLedId, string?> _ledIdNames = new();
private static readonly Dictionary<SteelSeriesDeviceType, string?> _deviceTypeNames = [];
private static readonly Dictionary<SteelSeriesLedId, string?> _ledIdNames = [];
// ReSharper restore InconsistentNaming
#endregion