From 0ea162922c064822cf9b2ac86a9f6cd5cc8a1b7d Mon Sep 17 00:00:00 2001 From: AnakinRaW Date: Sat, 3 Aug 2024 14:28:36 +0200 Subject: [PATCH] make static --- .../AET.SteamAbstraction/Library/SteamLibrary.cs | 6 +++--- .../AET.SteamAbstraction/NativeMethods/WindowHandleInfo.cs | 2 +- .../AET.SteamAbstraction/SteamAbstractionLayer.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AET.SteamAbstraction/AET.SteamAbstraction/Library/SteamLibrary.cs b/src/AET.SteamAbstraction/AET.SteamAbstraction/Library/SteamLibrary.cs index 1acfbad..6fd1280 100644 --- a/src/AET.SteamAbstraction/AET.SteamAbstraction/Library/SteamLibrary.cs +++ b/src/AET.SteamAbstraction/AET.SteamAbstraction/Library/SteamLibrary.cs @@ -16,9 +16,9 @@ internal class SteamLibrary : ISteamLibrary private readonly Dictionary _locationsNames = new() { - { KnownLibraryLocations.SteamApps, new[] { "steamapps" } }, - { KnownLibraryLocations.Common, new[] { "steamapps", "common" } }, - { KnownLibraryLocations.Workshops, new[] { "steamapps", "workshop" } } + { KnownLibraryLocations.SteamApps, ["steamapps"] }, + { KnownLibraryLocations.Common, ["steamapps", "common"] }, + { KnownLibraryLocations.Workshops, ["steamapps", "workshop"] } }; private readonly string _normalizedLocation; diff --git a/src/AET.SteamAbstraction/AET.SteamAbstraction/NativeMethods/WindowHandleInfo.cs b/src/AET.SteamAbstraction/AET.SteamAbstraction/NativeMethods/WindowHandleInfo.cs index 15ba5e4..a28fec7 100644 --- a/src/AET.SteamAbstraction/AET.SteamAbstraction/NativeMethods/WindowHandleInfo.cs +++ b/src/AET.SteamAbstraction/AET.SteamAbstraction/NativeMethods/WindowHandleInfo.cs @@ -8,7 +8,7 @@ internal class WindowHandleInfo(IntPtr handle) { public List GetAllChildHandles() { - List childHandles = new(); + List childHandles = []; var gcChildHandlesList = GCHandle.Alloc(childHandles); var pointerChildHandlesList = GCHandle.ToIntPtr(gcChildHandlesList); diff --git a/src/AET.SteamAbstraction/AET.SteamAbstraction/SteamAbstractionLayer.cs b/src/AET.SteamAbstraction/AET.SteamAbstraction/SteamAbstractionLayer.cs index 16ec260..c381b1b 100644 --- a/src/AET.SteamAbstraction/AET.SteamAbstraction/SteamAbstractionLayer.cs +++ b/src/AET.SteamAbstraction/AET.SteamAbstraction/SteamAbstractionLayer.cs @@ -9,7 +9,7 @@ namespace AET.SteamAbstraction; /// /// Provides initialization routines for this library. /// -public class SteamAbstractionLayer +public static class SteamAbstractionLayer { /// /// Adds services provided by this library to the given