dd007c67 dd6e 1eea d03e e1ca689ff7c3 - akesseler/Plexdata.Utilities.Templates GitHub Wiki
The format separator character.
Namespace: Plexdata.Utilities.Formatting.Defines
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0
C#
public const char FormatToken = ':'
Type: Char
This constant serves as start tag of the value format and separates it from the rest of the format statement.
Here an example of how the format token is used.
C#
Template.Format("{0:N2}", 42);
Template.Format("{SomeName:N2}", 42);
Template.Format("{0,10:N2}", 42);
Template.Format("{SomeName,10:N2}", 42);
Please keep in mind, the optional value format must always be put at the end of the whole formatting statement.
TokenLiterals Class
Plexdata.Utilities.Formatting.Defines Namespace
TokenLiterals.LiningToken