Skip to content

An extensible .NET replacement for String.Format

License

Notifications You must be signed in to change notification settings

andersjonsson/SmartFormat

 
 

Repository files navigation

Logo

GitHub release License: MIT Build status AppVeyor tests codecov

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.

Supported Frameworks

  • .Net Framework 4.6.1, 4.6.2, 4.7.2 and 4.8
  • .Net Standard 2.0 and 2.1
  • .Net 5.0

Get started

NuGet Install the NuGet package

Docs Have a look at the SmartFormat.Net Wiki

See changelog for changes.

Version 3.0

We have started to think about 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
  • Support for Net 5.0
  • Remove public properties/methods which should better be internal or even privat
  • Upgrade the project to C# 8 with nullable reference types included
  • Code clean-up: Make use of current C# features, add missing comments
  • Re-organize unit tests
  • ... ?

About

An extensible .NET replacement for String.Format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%