SmartFormat 3.2.0

SmartFormat

What is SmartFormat?

SmartFormat is a lightweight text templating library written in C#.

It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. All formatting takes place at runtime.

SmartFormat uses extensions to provide named placeholders, localization, pluralization, gender conjugation, as well as list and time formatting. Formatting extensions can be nested.

Custom source or formatter extensions can be added easily using simple interfaces.

Features

  • High performance with low memory footprint
  • Minimal, intuitive syntax
  • Formatting takes place exclusively at runtime
  • Exact control of whitespace text output
  • string.Format compatibility mode and Smart.Format enhanced mode
  • Most common data sources work out-of-the-box
  • Many built-in formatting extensions
  • Custom formatting and source extensions are easy to integrate
  • Comprehensive documentation: current Wiki, complete xmldoc

Supported Frameworks

  • .Net Framework 4.6.1 and later
  • .Net Standard 2.0
  • .Net Standard 2.1 and later for best optimizations

Paypal-Donations

Showing the top 20 packages that depend on SmartFormat.

Packages Downloads
SmartFormat.Extensions.Time
This package is a SmartFormat extension for formatting System.DateTime, System.DateTimeOffset and System.TimeSpan types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
21
SmartFormat.NET
This package contains the core SmartFormat assemblies with core extensions built-in, and includes references to additional SmartFormat.Extensions packages. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
20
SmartFormat.Extensions.Newtonsoft.Json
This package is a SmartFormat extension for formatting Newtonsoft.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
20
SmartFormat.NET
This package contains the core SmartFormat assemblies with core extensions built-in, and includes references to additional SmartFormat.Extensions packages. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
19
SmartFormat.Extensions.Time
This package is a SmartFormat extension for formatting System.DateTime, System.DateTimeOffset and System.TimeSpan types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
19
SmartFormat.Extensions.Time
This package is a SmartFormat extension for formatting System.DateTime, System.DateTimeOffset and System.TimeSpan types. SmartFormat is a string composition library written in C#. It can format various data sources into a string with a minimal, intuitive syntax. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
18
SmartFormat.NET
This package contains the core SmartFormat assemblies with core extensions built-in, and includes references to additional SmartFormat.Extensions packages. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
18
SmartFormat.Extensions.Xml
This package is a SmartFormat extension for reading and formatting System.Xml.Linq.XElement SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
18
SmartFormat.Extensions.Newtonsoft.Json
This package is a SmartFormat extension for formatting Newtonsoft.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
18
SmartFormat.Extensions.System.Text.Json
This package is a SmartFormat extension for formatting System.Text.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
18
SmartFormat.Extensions.Time
This package is a SmartFormat extension for formatting System.DateTime, System.DateTimeOffset and System.TimeSpan types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
17
SmartFormat.NET
This package contains the core SmartFormat assemblies with core extensions built-in, and includes references to additional SmartFormat.Extensions packages. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
17
SmartFormat.Extensions.System.Text.Json
This package is a SmartFormat extension for formatting System.Text.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
17

See the change log for details of this release: https://github.com/axuno/SmartFormat/blob/main/CHANGES.md

.NET Framework 4.6.1

.NET Standard 2.0

.NET Standard 2.1

Version Downloads Last updated
3.6.0 8 3/20/2025
3.5.3 9 2/21/2025
3.5.2 9 2/21/2025
3.5.1 10 12/3/2024
3.5.0 13 8/12/2024
3.4.0 12 6/28/2024
3.3.2 20 3/5/2024
3.3.1 19 3/7/2024
3.3.0 15 3/7/2024
3.2.2 15 3/7/2024
3.2.1 16 3/7/2024
3.2.0 15 3/7/2024
3.1.0 15 3/7/2024
3.0.0 17 3/7/2024
3.0.0-rc.2 14 3/7/2024
3.0.0-rc.1 16 3/7/2024