From 7a70a021bcc9d30c97f376029ce414d9b5c3912a Mon Sep 17 00:00:00 2001 From: Sergey Komisarchik Date: Mon, 3 Jul 2017 22:14:19 +0300 Subject: [PATCH] .net native compiler error workaround fix --- src/Serilog/Rendering/Padding.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Serilog/Rendering/Padding.cs b/src/Serilog/Rendering/Padding.cs index 23ea8206e..96f3cd1db 100644 --- a/src/Serilog/Rendering/Padding.cs +++ b/src/Serilog/Rendering/Padding.cs @@ -13,13 +13,14 @@ // limitations under the License. using System.IO; +using System.Linq; using Serilog.Parsing; namespace Serilog.Rendering { static class Padding { - static readonly char[] PaddingChars = new string(' ', 80).ToCharArray(); + static readonly char[] PaddingChars = Enumerable.Repeat(' ', 80).ToArray(); /// /// Writes the provided value to the output, applying direction-based padding when is provided.