mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +00:00
Applied some C#12 stuff
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user