Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/NLogPublic

PropertiesDictionary - Initial 3 properties without dictionary#6046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
snakefoot wants to merge2 commits intoNLog:dev
base:dev
Choose a base branch
Loading
fromsnakefoot:property_dictionary
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletionssrc/NLog/Internal/LogMessageTemplateFormatter.cs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -135,7 +135,7 @@ private void AppendToBuilder(LogEventInfo logEvent, object?[] parameters, String
/// <param name="parameters">Parameters for the holes.</param>
/// <param name="sb">The String Builder destination.</param>
/// <param name="messageTemplateParameters">Parameters for the holes.</param>
private void Render(string template, IFormatProvider? formatProvider, object?[] parameters, StringBuilder sb, outIList<MessageTemplateParameter>? messageTemplateParameters)
private void Render(string template, IFormatProvider? formatProvider, object?[] parameters, StringBuilder sb, out MessageTemplateParameter[]? messageTemplateParameters)
{
messageTemplateParameters = null;

Expand DownExpand Up@@ -200,7 +200,7 @@ private void Render(string template, IFormatProvider? formatProvider, object?[]
}

#if NETSTANDARD2_1_OR_GREATER || NET9_0_OR_GREATER
internal string Render(ref TemplateEnumerator templateEnumerator, IFormatProvider? formatProvider, in ReadOnlySpan<object?> parameters, outIList<MessageTemplateParameter>? messageTemplateParameters)
internal string Render(ref TemplateEnumerator templateEnumerator, IFormatProvider? formatProvider, in ReadOnlySpan<object?> parameters, out MessageTemplateParameter[]? messageTemplateParameters)
{
// Handle message-template-format or string-format or mixed-format
messageTemplateParameters = null;
Expand DownExpand Up@@ -264,9 +264,9 @@ internal string Render(ref TemplateEnumerator templateEnumerator, IFormatProvide
}
#endif

private staticIList<MessageTemplateParameter>? VerifyMessageTemplateParameters(IList<MessageTemplateParameter>? messageTemplateParameters, int holeIndex)
private static MessageTemplateParameter[]? VerifyMessageTemplateParameters(MessageTemplateParameter[]? messageTemplateParameters, int holeIndex)
{
if (messageTemplateParameters != null && holeIndex != messageTemplateParameters.Count)
if (messageTemplateParameters != null && holeIndex != messageTemplateParameters.Length)
{
var truncateParameters = new MessageTemplateParameter[holeIndex];
for (int i = 0; i < truncateParameters.Length; ++i)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp