Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Format() [9/19]

static string System.Net.NetEventSource.Format ( FormattableString s)
inlinestaticprivate

Definition at line 216 of file NetEventSource.cs.

217 {
218 switch (s.ArgumentCount)
219 {
220 case 0:
221 return s.Format;
222 case 1:
223 return string.Format(s.Format, Format(s.GetArgument(0)));
224 case 2:
225 return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
226 case 3:
227 return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)), Format(s.GetArgument(2)));
228 default:
229 {
230 object[] arguments = s.GetArguments();
231 object[] array = new object[arguments.Length];
232 for (int i = 0; i < arguments.Length; i++)
233 {
234 array[i] = Format(arguments[i]);
235 }
236 return string.Format(s.Format, array);
237 }
238 }
239 }

References System.array, System.Format, and System.s.