Fix CA1052

This commit is contained in:
RoosterDragon
2023-03-12 12:02:27 +00:00
committed by abcdefg30
parent f336a956cf
commit 0958197df2
12 changed files with 15 additions and 13 deletions

View File

@@ -69,7 +69,7 @@ namespace OpenRA
// HACK: Temporary placeholder to avoid having to change all the traits that reference this constant.
// This can be removed after the palette references have been moved from traits to sequences.
public class TileSet
public static class TileSet
{
public const string TerrainPaletteInternalName = "terrain";
}

View File

@@ -19,7 +19,7 @@ using ICSharpCode.SharpZipLib.Zip;
namespace OpenRA.Network
{
public class GeoIP
public static class GeoIP
{
sealed class IP2LocationReader
{

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Network
{
public enum NatStatus { Enabled, Disabled, NotSupported }
public class Nat
public static class Nat
{
public static NatStatus Status => NatUtility.IsSearching ? natDevice != null ? NatStatus.Enabled : NatStatus.NotSupported : NatStatus.Disabled;

View File

@@ -14,7 +14,7 @@ using System.Net.Http;
namespace OpenRA.Support
{
public class HttpClientFactory
public static class HttpClientFactory
{
#if NET5_0_OR_GREATER
const int MaxConnectionPerServer = 20;