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

@@ -37,13 +37,13 @@ public sealed class CorsairDeviceProvider : AbstractRGBDeviceProvider
/// Gets a modifiable list of paths used to find the native SDK-dlls for x86 applications.
/// The first match will be used.
/// </summary>
public static List<string> PossibleX86NativePaths { get; } = new() { "x86/iCUESDK.dll", "x86/CUESDK_2019.dll" };
public static List<string> PossibleX86NativePaths { get; } = ["x86/iCUESDK.dll", "x86/CUESDK_2019.dll"];
/// <summary>
/// Gets a modifiable list of paths used to find the native SDK-dlls for x64 applications.
/// The first match will be used.
/// </summary>
public static List<string> PossibleX64NativePaths { get; } = new() { "x64/iCUESDK.dll", "x64/iCUESDK.x64_2019.dll", "x64/CUESDK.dll", "x64/CUESDK.x64_2019.dll" };
public static List<string> PossibleX64NativePaths { get; } = ["x64/iCUESDK.dll", "x64/iCUESDK.x64_2019.dll", "x64/CUESDK.dll", "x64/CUESDK.x64_2019.dll"];
/// <summary>
/// Gets or sets the timeout used when connecting to the SDK.
@@ -165,7 +165,7 @@ internal static class LedMappings
internal static LedMapping<CorsairLedId> CreateMapping(IEnumerable<CorsairLedId> ids, LedId referenceId)
{
LedMapping<CorsairLedId> mapping = new();
LedMapping<CorsairLedId> mapping = [];
int counter = 0;
foreach (CorsairLedId corsairLedId in ids.OrderBy(x => x))
mapping.Add(referenceId + counter++, corsairLedId);
@@ -19,6 +19,7 @@ internal sealed class _CorsairDeviceFilter
/// <summary>
/// iCUE-SDK: mask that describes device types, formed as logical “or” of CorsairDeviceType enum values
/// </summary>
// ReSharper disable once NotAccessedField.Global
internal CorsairDeviceType deviceTypeMask;
#endregion