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: 2023.0.3.0 (2023.0.3.0)
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.