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

Commit54f7c93

Browse files
committed
PropertiesDictionary - Initial 3 properties without dictionary
1 parent56727c0 commit54f7c93

File tree

5 files changed

+231
-104
lines changed

5 files changed

+231
-104
lines changed

‎src/NLog/Internal/LogMessageTemplateFormatter.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private void AppendToBuilder(LogEventInfo logEvent, object?[] parameters, String
135135
/// <param name="parameters">Parameters for the holes.</param>
136136
/// <param name="sb">The String Builder destination.</param>
137137
/// <param name="messageTemplateParameters">Parameters for the holes.</param>
138-
privatevoidRender(stringtemplate,IFormatProvider?formatProvider,object?[]parameters,StringBuildersb,outIList<MessageTemplateParameter>?messageTemplateParameters)
138+
privatevoidRender(stringtemplate,IFormatProvider?formatProvider,object?[]parameters,StringBuildersb,outMessageTemplateParameter[]?messageTemplateParameters)
139139
{
140140
messageTemplateParameters=null;
141141

@@ -200,7 +200,7 @@ private void Render(string template, IFormatProvider? formatProvider, object?[]
200200
}
201201

202202
#ifNETSTANDARD2_1_OR_GREATER||NET9_0_OR_GREATER
203-
internalstringRender(refTemplateEnumeratortemplateEnumerator,IFormatProvider?formatProvider,inReadOnlySpan<object?>parameters,outIList<MessageTemplateParameter>?messageTemplateParameters)
203+
internalstringRender(refTemplateEnumeratortemplateEnumerator,IFormatProvider?formatProvider,inReadOnlySpan<object?>parameters,outMessageTemplateParameter[]?messageTemplateParameters)
204204
{
205205
// Handle message-template-format or string-format or mixed-format
206206
messageTemplateParameters=null;
@@ -264,9 +264,9 @@ internal string Render(ref TemplateEnumerator templateEnumerator, IFormatProvide
264264
}
265265
#endif
266266

267-
privatestaticIList<MessageTemplateParameter>?VerifyMessageTemplateParameters(IList<MessageTemplateParameter>?messageTemplateParameters,intholeIndex)
267+
privatestaticMessageTemplateParameter[]?VerifyMessageTemplateParameters(MessageTemplateParameter[]?messageTemplateParameters,intholeIndex)
268268
{
269-
if(messageTemplateParameters!=null&&holeIndex!=messageTemplateParameters.Count)
269+
if(messageTemplateParameters!=null&&holeIndex!=messageTemplateParameters.Length)
270270
{
271271
vartruncateParameters=newMessageTemplateParameter[holeIndex];
272272
for(inti=0;i<truncateParameters.Length;++i)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp