9f3801d2 60a2 be7e 8514 63c1e432eb13 - akesseler/Plexdata.Utilities.Templates GitHub Wiki

Template.Format Method (IFormatProvider, IArgumentSerializer, String, Object[])

Formats the list of arguments into the format string using given format provider as well as given argument serializer.

Namespace: Plexdata.Utilities.Formatting
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0

Syntax

C#

public static string Format(
	IFormatProvider provider,
	IArgumentSerializer serializer,
	string format,
	params Object[] arguments
)

Parameters

 

provider
Type: System.IFormatProvider
An instance of a IFormatProvider derived class used the to perform culture-specific formatting.
serializer
Type: Plexdata.Utilities.Formatting.Interfaces.IArgumentSerializer
An instance of a IArgumentSerializer derived class used the to perform any kind of serialization for custom types.
format
Type: System.String
A string containing formatting instructions, either for index-based formatting, like "{0}, {1}, ...", or for template-based formatting, like "{name1}, {name2}, ...").
arguments
Type: System.Object[]
The optional list of arguments to be used.

Return Value

Type: String
A copy of format with the format elements replaced by the string representation of the corresponding objects in arguments.

Remarks

This method formats the list of arguments into the format string using given format provider as well as given argument serializer.

See Also

Reference

Template Class
Format Overload
Plexdata.Utilities.Formatting Namespace
Template.Format(String, Object[])
Template.Format(IFormatProvider, String, Object[])
Template.Format(IArgumentSerializer, String, Object[])
Template.Format(Options, String, Object[])

⚠️ **GitHub.com Fallback** ⚠️