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 HierarchySystemObject
SystemAttribute
Ozeki.CommonStringFormatMethodAttribute
Namespace:
Ozeki.Common
Assembly:
OzekiSDK (in OzekiSDK.dll) Version: 10.3.183.0
Syntaxpublic sealed class StringFormatMethodAttribute : Attribute
Public NotInheritable Class StringFormatMethodAttribute
Inherits Attribute
public ref class StringFormatMethodAttribute sealed : public Attribute
[<SealedAttribute>]
type StringFormatMethodAttribute =
class
inherit Attribute
end
The StringFormatMethodAttribute type exposes the following members.
Constructors
Properties
Examples[StringFormatMethod("message")]
public void ShowError(string message, params object[] args) { }
public void Foo() {
ShowError("Failed: {0}");
}
See Also