3cf4f0a1 8d62 9d6d 69a7 80caffeb437d - akesseler/Plexdata.Utilities.Templates GitHub Wiki

TemplateWeaver.ToFormattedValue Method

Turns the argument into its formatted representation.

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

Syntax

C#

private static string ToFormattedValue(
	this BaseToken token,
	Options options,
	Object argument
)

Parameters

 

token
Type: Plexdata.Utilities.Formatting.Entities.BaseToken
The token to be processed.
options
Type: Plexdata.Utilities.Formatting.Options
The options to be used.
argument
Type: System.Object
The argument to be formatted.

Return Value

Type: String
The argument in its formatted representation.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BaseToken. 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).

Remarks

This method turns the argument into its formatted representation.

Method Format(String, Object, IFormatProvider) is called if the argument is derived from ICustomFormatter.

Method ToString(String, IFormatProvider) is called if the argument is derived from IFormattable.

Method ToString() is called in any other case..

See Also

Reference

TemplateWeaver Class
Plexdata.Utilities.Formatting.Helpers Namespace

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