PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Contract­Localized­Text­Provider Class/Contract­Localized­Text­Provider Methods/Contract­Localized­Text­Provider.​Get­Formatting­String­Arguments Method

ContractLocalizedTextProvider.GetFormattingStringArguments Method

Returns an array of arguments that can be passed to the Format(String, Object[]) method

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.13.0 (6.5.13.0)
Syntax
C#
public static Object[] GetFormattingStringArguments(
	Object value,
	string locationName,
	LocationKind locationKind,
	Object[] additionalArguments
)

Parameters

value
Type: System.Object
The incorrect value (passed, assigned or returned).
locationName
Type: System.String
The name of the declaration being validated (or null if a return value is being validated).
locationKind
Type: PostSharp.Reflection.LocationKind
The kind of declaration being validated.
additionalArguments
Type: System.Object[]
Additional arguments appended to the array of arguments.

Return Value

Type: Object[]
An array of arguments that can be passed to the Format(String, Object[]) method, where the formatting strings can have parameters as described in the remarks of the documentation of the ContractLocalizedTextProvider class.
Remarks

See Also