![]() | StringFormatMethodAttribute Class |
Namespace: Slash.Diagnostics.ReSharper.Annotations
The StringFormatMethodAttribute type exposes the following members.
Name | Description | |
---|---|---|
![]() | StringFormatMethodAttribute |
Initializes new instance of StringFormatMethodAttribute
|
Name | Description | |
---|---|---|
![]() | FormatParameterName |
Gets format parameter name
|
[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 }