From 72dca6b008bae7a61007fe01947ca429087939ea Mon Sep 17 00:00:00 2001 From: lindexi Date: Wed, 18 Sep 2024 19:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LoggerInterpolatedStringHandler.g.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/dotnetCampus.Logger/LoggerInterpolatedStringHandler.g.cs b/src/dotnetCampus.Logger/LoggerInterpolatedStringHandler.g.cs index d7bd06e..125cce5 100644 --- a/src/dotnetCampus.Logger/LoggerInterpolatedStringHandler.g.cs +++ b/src/dotnetCampus.Logger/LoggerInterpolatedStringHandler.g.cs @@ -15,20 +15,20 @@ public LoggerInterpolatedStringHandler(int literalLength, int formattedCount) public void AppendLiteral(string s) { - ref var handle = ref _handler; - handle.AppendLiteral(s); + ref var handler = ref _handler; + handler.AppendLiteral(s); } public void AppendFormatted(T value) { - ref var handle = ref _handler; - handle.AppendFormatted(value); + ref var handler = ref _handler; + handler.AppendFormatted(value); } public void AppendFormatted(T value, string format) { - ref var handle = ref _handler; - handle.AppendFormatted(value, format); + ref var handler = ref _handler; + handler.AppendFormatted(value, format); } public string ToStringAndClear() @@ -39,8 +39,8 @@ public string ToStringAndClear() public override string ToString() { - ref var handle = ref _handler; - return handle.ToString(); + ref var handler = ref _handler; + return handler.ToString(); } /// @@ -50,8 +50,8 @@ public void Discard() { // 这里的 ToStringAndClear 其实只是取其 Clear 的功能 // 暂时先使用 DefaultInterpolatedStringHandler 提供的能力,后续再考虑是否需要优化 - ref var handle = ref _handler; - handle.ToStringAndClear(); + ref var handler = ref _handler; + handler.ToStringAndClear(); } }