Fix IDE0090
This commit is contained in:
committed by
Pavel Penev
parent
164abfdae1
commit
8a285f9b19
@@ -22,7 +22,7 @@ namespace OpenRA.Network
|
||||
class SyncReport
|
||||
{
|
||||
const int NumSyncReports = 7;
|
||||
static readonly Cache<Type, TypeInfo> TypeInfoCache = new Cache<Type, TypeInfo>(t => new TypeInfo(t));
|
||||
static readonly Cache<Type, TypeInfo> TypeInfoCache = new(t => new TypeInfo(t));
|
||||
|
||||
readonly OrderManager orderManager;
|
||||
|
||||
@@ -166,9 +166,9 @@ namespace OpenRA.Network
|
||||
public int Frame;
|
||||
public int SyncedRandom;
|
||||
public int TotalCount;
|
||||
public readonly List<TraitReport> Traits = new List<TraitReport>();
|
||||
public readonly List<EffectReport> Effects = new List<EffectReport>();
|
||||
public readonly List<OrderManager.ClientOrder> Orders = new List<OrderManager.ClientOrder>();
|
||||
public readonly List<TraitReport> Traits = new();
|
||||
public readonly List<EffectReport> Effects = new();
|
||||
public readonly List<OrderManager.ClientOrder> Orders = new();
|
||||
}
|
||||
|
||||
struct TraitReport
|
||||
@@ -278,7 +278,7 @@ namespace OpenRA.Network
|
||||
/// </summary>
|
||||
struct Values
|
||||
{
|
||||
static readonly object Sentinel = new object();
|
||||
static readonly object Sentinel = new();
|
||||
|
||||
object item1OrArray;
|
||||
object item2OrSentinel;
|
||||
|
||||
Reference in New Issue
Block a user