From 3e224a0d3d6529468e78e18147b9a236bea5b96c Mon Sep 17 00:00:00 2001 From: Thibaud DESODT Date: Tue, 24 Oct 2017 07:20:39 +0200 Subject: [PATCH] Remove "using System.Collections.ObjectModel" --- src/Serilog/Configuration/LoggerSettingsConfiguration.cs | 1 - src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Serilog/Configuration/LoggerSettingsConfiguration.cs b/src/Serilog/Configuration/LoggerSettingsConfiguration.cs index 3b40ca44d..ce279f0eb 100644 --- a/src/Serilog/Configuration/LoggerSettingsConfiguration.cs +++ b/src/Serilog/Configuration/LoggerSettingsConfiguration.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Linq; using Serilog.Settings.KeyValuePairs; diff --git a/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs b/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs index 3870b5dea..96d8a8ae5 100644 --- a/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs +++ b/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; @@ -203,7 +202,7 @@ where matchLevelSwitchDeclarations.IsMatch(wt.Key) } namedSwitches.Add(switchName, newSwitch); } - return new ReadOnlyDictionary(namedSwitches); + return namedSwitches; } static LoggingLevelSwitch LookUpSwitchByName(string switchName, IReadOnlyDictionary declaredLevelSwitches)