@@ -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- private void Render ( string template , IFormatProvider ? formatProvider , object ? [ ] parameters , StringBuilder sb , out IList < MessageTemplateParameter > ? messageTemplateParameters )
138+ private void Render ( string template , IFormatProvider ? formatProvider , object ? [ ] parameters , StringBuilder sb , out MessageTemplateParameter [ ] ? messageTemplateParameters )
139139{
140140messageTemplateParameters = 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- internal string Render ( ref TemplateEnumerator templateEnumerator , IFormatProvider ? formatProvider , in ReadOnlySpan < object ? > parameters , out IList < MessageTemplateParameter > ? messageTemplateParameters )
203+ internal string Render ( ref TemplateEnumerator templateEnumerator , IFormatProvider ? formatProvider , in ReadOnlySpan < object ? > parameters , out MessageTemplateParameter [ ] ? messageTemplateParameters )
204204{
205205// Handle message-template-format or string-format or mixed-format
206206messageTemplateParameters = null ;
@@ -264,9 +264,9 @@ internal string Render(ref TemplateEnumerator templateEnumerator, IFormatProvide
264264}
265265#endif
266266
267- private static IList < MessageTemplateParameter > ? VerifyMessageTemplateParameters ( IList < MessageTemplateParameter > ? messageTemplateParameters , int holeIndex )
267+ private static MessageTemplateParameter [ ] ? VerifyMessageTemplateParameters ( MessageTemplateParameter [ ] ? messageTemplateParameters , int holeIndex )
268268{
269- if ( messageTemplateParameters != null && holeIndex != messageTemplateParameters . Count )
269+ if ( messageTemplateParameters != null && holeIndex != messageTemplateParameters . Length )
270270{
271271var truncateParameters = new MessageTemplateParameter [ holeIndex ] ;
272272for ( int i = 0 ; i < truncateParameters . Length ; ++ i )