Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 2538f20

Browse files
committed
Add readonly to EventId and ConsoleColors structures
1 parent 60c601c commit 2538f20

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: src/Microsoft.Extensions.Logging.Abstractions/EventId.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Microsoft.Extensions.Logging
55
{
6-
public struct EventId
6+
public readonly struct EventId
77
{
88
public static implicit operator EventId(int i)
99
{

Diff for: src/Microsoft.Extensions.Logging.Console/ConsoleLogger.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Runtime.InteropServices;
66
using System.Text;
7-
using Microsoft.Extensions.DependencyInjection;
87
using Microsoft.Extensions.Logging.Abstractions.Internal;
98
using Microsoft.Extensions.Logging.Console.Internal;
109

@@ -274,7 +273,7 @@ private void GetScopeInformation(StringBuilder stringBuilder)
274273
}
275274
}
276275

277-
private struct ConsoleColors
276+
private readonly struct ConsoleColors
278277
{
279278
public ConsoleColors(ConsoleColor? foreground, ConsoleColor? background)
280279
{

0 commit comments

Comments
 (0)