Fix IDE0090

This commit is contained in:
RoosterDragon
2023-04-05 19:34:12 +01:00
committed by Pavel Penev
parent 164abfdae1
commit 8a285f9b19
385 changed files with 790 additions and 794 deletions

View File

@@ -25,7 +25,7 @@ namespace OpenRA.Mods.Cnc.FileSystem
public string Name { get; }
public IEnumerable<string> Contents => index.Keys;
readonly Dictionary<string, Entry> index = new Dictionary<string, Entry>();
readonly Dictionary<string, Entry> index = new();
readonly Stream s;
public BigFile(Stream s, string filename)

View File

@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Cnc.FileSystem
{
readonly Stream s;
readonly Dictionary<string, (uint Offset, int Length)> contents = new Dictionary<string, (uint Offset, int Length)>();
readonly Dictionary<string, (uint Offset, int Length)> contents = new();
public MegFile(Stream s, string filename)
{

View File

@@ -105,7 +105,7 @@ namespace OpenRA.Mods.Cnc.FileSystem
}
}
static readonly Dictionary<uint, string> Names = new Dictionary<uint, string>();
static readonly Dictionary<uint, string> Names = new();
public static void AddStandardName(string s)
{

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Cnc.FileSystem
public string Name { get; }
public IEnumerable<string> Contents => index.Keys;
readonly Dictionary<string, Entry> index = new Dictionary<string, Entry>();
readonly Dictionary<string, Entry> index = new();
readonly Stream stream;
public PakFile(Stream stream, string filename)