class FormattableString

in global :: System

Represents a composite format string, along with the arguments to be formatted.


public int ArgumentCount { get; }

Gets the number of arguments to be formatted.

  • Returns The number of arguments to be formatted.

public string Format { get; }

Returns the composite format string.

  • Returns The composite format string.

public object GetArgument( int index )

Returns the argument at the specified index position.

  • index The index of the argument. Its value can range from zero to one less than the value of .
  • Returns The argument.

public static string Invariant( FormattableString formattable )

Returns a result string in which arguments are formatted by using the conventions of the invariant culture.

  • formattable The object to convert to a result string.
  • Returns The string that results from formatting the current instance by using the conventions of the invariant culture.

public string ToString( IFormatProvider formatProvider )

Returns the string that results from formatting the composite format string along with its arguments by using the formatting conventions of a specified culture.

  • formatProvider An object that provides culture-specific formatting information.
  • Returns A result string formatted by using the conventions of .

public object[] GetArguments( )

😔 No documentation found.

public static string CurrentCulture( FormattableString formattable )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.