| StringFormatMethodAttribute Class |
Namespace: Ozeki.Common
The StringFormatMethodAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| StringFormatMethodAttribute | Initializes a new instance of the StringFormatMethodAttribute class |
| Name | Description | |
|---|---|---|
| FormatParameterName |
[StringFormatMethod("message")] public void ShowError(string message, params object[] args) { /* do something */ } public void Foo() { ShowError("Failed: {0}"); // Warning: Non-existing argument in format string }