Skip to content

Commit

Permalink
优化生成代码实现
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Sep 18, 2024
1 parent db42158 commit 7062a5d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/dotnetCampus.Logger/LoggerInterpolatedStringHandler.g.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Runtime.CompilerServices;

#if NET6_0_OR_GREATER
#if NET6_0_OR_GREATER
using global::System.Runtime.CompilerServices;

namespace dotnetCampus.Logging;

Expand All @@ -18,7 +17,7 @@ public LoggerInterpolatedStringHandler(int literalLength, int formattedCount)

public void AppendFormatted<T>(T value) => _handler.AppendFormatted(value);

public void AppendFormatted<T>(T value, string? format) => _handler.AppendFormatted(value, format);
public void AppendFormatted<T>(T value, string format) => _handler.AppendFormatted(value, format);

public string ToStringAndClear() => _handler.ToStringAndClear();

Expand All @@ -35,4 +34,4 @@ public void Discard()
}
}

#endif
#endif

0 comments on commit 7062a5d

Please sign in to comment.