.NET Framework 4.0
NuGet\Install-Package NamedFormatExtension -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package NamedFormatExtension --version
<PackageReference Include="NamedFormatExtension" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NamedFormatExtension --version
#r "nuget: NamedFormatExtension,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NamedFormatExtension as a Cake Addin
#addin nuget:?package=NamedFormatExtension&version=

// Install NamedFormatExtension as a Cake Tool
#tool nuget:?package=NamedFormatExtension&version=

Provides better code maintainability by simple yet powerful .Params() string extension to supplement/replace string.Format(). Accepts numeric, named and reference parameters. More details and examples in XML tooltips.

return "test={0}".Params("value");
returns ["test=value"]

return "test={val}".Params(val => 1)
returns ["test=1"]

var test = "value";
return "test={test}".Params(() => test)
returns ["test=value"]

You can't combine the 3 types in a single Param() call (there are safety checks in place), but you can chain them. All 3 methods support multiple parameters.

Product Versions
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 1,892 10/24/2014

Included XML comments.