Click or drag to resize
StringFormatMethodAttribute Class
Indicates that the marked method builds string by format pattern and (optional) arguments. Parameter, which contains format string, should be given in constructor. The format string should be in Format(IFormatProvider, String, Object)-like form
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Ozeki.CommonStringFormatMethodAttribute

Namespace: Ozeki.Common
Assembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax
public sealed class StringFormatMethodAttribute : Attribute

The StringFormatMethodAttribute type exposes the following members.

Constructors
  NameDescription
Public methodStringFormatMethodAttribute
Initializes a new instance of the StringFormatMethodAttribute class
Top
Properties
  NameDescription
Public propertyFormatParameterName
Top
Examples
[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
}
See Also