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

@@ -59,9 +59,9 @@ namespace OpenRA.Mods.Common.FileFormats
3, 4, 5, 6, 7, 8
};
static readonly Huffman LitCode = new Huffman(LitLen, 256);
static readonly Huffman LenCode = new Huffman(LenLen, 16);
static readonly Huffman DistCode = new Huffman(DistLen, 64);
static readonly Huffman LitCode = new(LitLen, 256);
static readonly Huffman LenCode = new(LenLen, 16);
static readonly Huffman DistCode = new(DistLen, 64);
/// <summary>PKWare Compression Library stream.</summary>
/// <param name="input">Compressed input stream.</param>

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.FileFormats
{
public class IniFile
{
readonly Dictionary<string, IniSection> sections = new Dictionary<string, IniSection>();
readonly Dictionary<string, IniSection> sections = new();
public IniFile(Stream s)
{
@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
readonly Regex sectionPattern = new Regex(@"^\[([^]]*)\]");
readonly Regex sectionPattern = new(@"^\[([^]]*)\]");
IniSection ProcessSection(string line)
{
@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.FileFormats
public class IniSection : IEnumerable<KeyValuePair<string, string>>
{
public string Name { get; }
readonly Dictionary<string, string> values = new Dictionary<string, string>();
readonly Dictionary<string, string> values = new();
public IniSection(string name)
{

View File

@@ -372,7 +372,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
readonly Dictionary<string, FileDescriptor> index = new Dictionary<string, FileDescriptor>();
readonly Dictionary<string, FileDescriptor> index = new();
readonly Dictionary<int, Stream> volumes;
readonly uint version;