Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
FormattableString.cs
Go to the documentation of this file.
2
3namespace System;
4
5public abstract class FormattableString : IFormattable
6{
7 public abstract string Format { get; }
8
9 public abstract int ArgumentCount { get; }
10
11 public abstract object?[] GetArguments();
12
13 public abstract object? GetArgument(int index);
14
15 public abstract string ToString(IFormatProvider? formatProvider);
16
17 string IFormattable.ToString(string ignored, IFormatProvider formatProvider)
18 {
19 return ToString(formatProvider);
20 }
21
22 public static string Invariant(FormattableString formattable)
23 {
24 if (formattable == null)
25 {
26 throw new ArgumentNullException("formattable");
27 }
28 return formattable.ToString(CultureInfo.InvariantCulture);
29 }
30
31 public static string CurrentCulture(FormattableString formattable)
32 {
33 if (formattable == null)
34 {
35 throw new ArgumentNullException("formattable");
36 }
37 return formattable.ToString(CultureInfo.CurrentCulture);
38 }
39
40 public override string ToString()
41 {
43 }
44}
static string Invariant(FormattableString formattable)
object? GetArgument(int index)
string ToString(IFormatProvider? formatProvider)
static string CurrentCulture(FormattableString formattable)
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture
string ToString(string? format, IFormatProvider? formatProvider)