PostSharpAPI ReferencePost­Sharp.​ExtensibilityIFormatting­ServiceFormat
Open sandboxFocus

IFormattingService.Format Method

Format(String, Object[])

Formats a string with the default IFormatProvider.

Declaration
string Format(string format, params object[] arguments)
Parameters
Type Name Description
System.String format

The formatting string.

Object[] arguments

Arguments.

Returns
Type Description
System.String

The formatted string where parameters in format are replaced by formatted arguments.

Format(IFormatProvider, String, Object[])

Formats a string and specifies the IFormatProvider.

Declaration
string Format(IFormatProvider provider, string format, params object[] arguments)
Parameters
Type Name Description
IFormatProvider provider

An IFormatProvider.

System.String format

The formatting string.

Object[] arguments

Arguments.

Returns
Type Description
System.String

The formatted string where parameters in format are replaced by formatted arguments.