mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-10 20:46: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
@@ -5,5 +5,4 @@ namespace RGB.NET.Devices.OpenRGB;
|
||||
/// <summary>
|
||||
/// Represents a generic OpenRGB Device.
|
||||
/// </summary>
|
||||
public interface IOpenRGBDevice : IRGBDevice
|
||||
{ }
|
||||
public interface IOpenRGBDevice : IRGBDevice;
|
||||
@@ -17,7 +17,7 @@ public sealed class OpenRGBDeviceProvider : AbstractRGBDeviceProvider
|
||||
// ReSharper disable once InconsistentNaming
|
||||
private static readonly object _lock = new();
|
||||
|
||||
private readonly List<OpenRgbClient> _clients = new();
|
||||
private readonly List<OpenRgbClient> _clients = [];
|
||||
|
||||
private static OpenRGBDeviceProvider? _instance;
|
||||
|
||||
@@ -36,7 +36,7 @@ public sealed class OpenRGBDeviceProvider : AbstractRGBDeviceProvider
|
||||
/// <summary>
|
||||
/// Gets a list of all defined device-definitions.
|
||||
/// </summary>
|
||||
public List<OpenRGBServerDefinition> DeviceDefinitions { get; } = new();
|
||||
public List<OpenRGBServerDefinition> DeviceDefinitions { get; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether all devices will be added, or just the ones with a 'Direct' mode. Defaults to false.
|
||||
|
||||
Reference in new issue
Block a user