Fix IDE0090
This commit is contained in:
committed by
Pavel Penev
parent
164abfdae1
commit
8a285f9b19
@@ -28,7 +28,7 @@ namespace OpenRA
|
||||
public static class Sync
|
||||
{
|
||||
static readonly ConcurrentCache<Type, Func<object, int>> HashFunctions =
|
||||
new ConcurrentCache<Type, Func<object, int>>(GenerateHashFunc);
|
||||
new(GenerateHashFunc);
|
||||
|
||||
internal static Func<object, int> GetHashFunction(ISync sync)
|
||||
{
|
||||
@@ -40,7 +40,7 @@ namespace OpenRA
|
||||
return GetHashFunction(sync)(sync);
|
||||
}
|
||||
|
||||
static readonly Dictionary<Type, MethodInfo> CustomHashFunctions = new Dictionary<Type, MethodInfo>()
|
||||
static readonly Dictionary<Type, MethodInfo> CustomHashFunctions = new()
|
||||
{
|
||||
{ typeof(int2), ((Func<int2, int>)HashInt2).Method },
|
||||
{ typeof(CPos), ((Func<CPos, int>)HashCPos).Method },
|
||||
|
||||
Reference in New Issue
Block a user