SmartFormat is a string composition library written in C# which is basically compatible with string.Format. More than that SmartFormat can format data with named placeholders, lists, pluralization and other smart extensions.
- .Net Framework 4.6.1 and later
- .Net Standard 2.0 and later (including .Net 5.0)
Have a look at the SmartFormat.Net Wiki
See changelog for changes.
See the list of changes already merged into branch version/v3
We have started to work on a new version of SmartFormat.Net
and would like to collect your input using GitHub Discussions.
- Improve management of extensions for better performance:
- make named formatters obligatory instead of iterating through all formatters
- the sequence, how extensions are loaded should not have an impact on identifying the right formatter
- Make caching of
Parser.ParseFormat
results the standard behavior - Rewrite the parser
- Performance improvements
- less generated garbage
- Remove
public
properties/methods which should better beinternal
or evenprivat
- Code clean-up: Make use of current C# features, add missing comments
- Re-organize unit tests
- ... ?