Download Latest Version v3.6.0 source code.tar.gz (305.2 kB)
Email in envelope

Get an email when there's a new version of SmartFormat

Home / v3.5.3
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-01-17 866 Bytes
v3.5.3 source code.tar.gz 2025-01-17 301.7 kB
v3.5.3 source code.zip 2025-01-17 456.1 kB
Totals: 3 Items   758.7 kB 2

What's Changed

Example:

TimeFormatter allows for nested formats:

:::cs
var ci = CultureInfo.GetCultureInfo("en");

// Using standard:
_ = Smart.Format(ci, "{1:time:", new TimeSpan(1,1,1,1,1));
// Output: "1 day 1 hour 1 minute 1 second"

// Using ListFormatter:
_ = Smart.Format(ci, "{1:time: {:list:|, | and }}", new TimeSpan(1,1,1,1,1));
// Output: "1 day, 1 hour, 1 minute and 1 second"

New Contributors

Full Changelog: https://github.com/axuno/SmartFormat/compare/v3.5.2...v3.5.3

Source: README.md, updated 2025-01-17