Open sandboxFocus

Method GetFormattingStringArguments

GetFormattingStringArguments(object, string, LocationKind, object[])

Returns an array of arguments that can be passed to the Format(string, params object[]) method

Declaration
public static object[] GetFormattingStringArguments(object value, string locationName, LocationKind locationKind, object[] additionalArguments)
Parameters
Type Name Description
object value

The incorrect value (passed, assigned or returned).

string locationName

The name of the declaration being validated (or null if a return value is being validated).

LocationKind locationKind

The kind of declaration being validated.

object[] additionalArguments

Additional arguments appended to the array of arguments.

Returns
Type Description
object[]

An array of arguments that can be passed to the Format(string, params object[]) method, where the formatting strings can have parameters as described in the remarks of the documentation of the ContractLocalizedTextProvider class.

Remarks