Add readonly to structs
This commit is contained in:
@@ -14,7 +14,7 @@ using System.Diagnostics;
|
||||
|
||||
namespace OpenRA.Support
|
||||
{
|
||||
public struct PerfSample : IDisposable
|
||||
public readonly struct PerfSample : IDisposable
|
||||
{
|
||||
readonly string item;
|
||||
readonly long ticks;
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace OpenRA.Support
|
||||
Invalid = ~0
|
||||
}
|
||||
|
||||
struct TokenTypeInfo
|
||||
readonly struct TokenTypeInfo
|
||||
{
|
||||
public readonly string Symbol;
|
||||
public readonly Precedence Precedence;
|
||||
|
||||
Reference in New Issue
Block a user