Click or drag to resize
Accord.NET (logo)

ExtensionMethodsFormat Method

Replaces the format item in a specified string with the string representation of a corresponding object in a specified array.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static string Format(
	this string str,
	params Object[] args
)
Request Example View Source

Parameters

str
Type: SystemString
A composite format string.
args
Type: SystemObject
An object array that contains zero or more objects to format.

Return Value

Type: String
A copy of str in which the format items have been replaced by the string representation of the corresponding objects in args.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also