Rdz.Net.Library
1.1213.1815.4916
dotnet add package Rdz.Net.Library --version 1.1213.1815.4916
NuGet\Install-Package Rdz.Net.Library -Version 1.1213.1815.4916
<PackageReference Include="Rdz.Net.Library" Version="1.1213.1815.4916" />
<PackageVersion Include="Rdz.Net.Library" Version="1.1213.1815.4916" />
<PackageReference Include="Rdz.Net.Library" />
paket add Rdz.Net.Library --version 1.1213.1815.4916
#r "nuget: Rdz.Net.Library, 1.1213.1815.4916"
#:package Rdz.Net.Library@1.1213.1815.4916
#addin nuget:?package=Rdz.Net.Library&version=1.1213.1815.4916
#tool nuget:?package=Rdz.Net.Library&version=1.1213.1815.4916
Rdz.Net.Library
It's a lightweight .NET library to simplify your code. The library consist of methods that extends the current data type in .NET Core.
How to Install
Run the following command (dotnet CLI).
dotnet add "{your-project-path}" package Rdz.Net.Library
Otherwise, go to your Visual Studio Package Manager, and look for Rdz.Net.Library. You don't need to use using directive, as the assembly extension tagged to System namespace which always available on project creation.
Auto-generated Documentations
Read this Rdz.Net.Library documentation for further information.
String.FormatTemplate Method
Namespace: System
Converts the value of objects to strings based on the formats specified and inserts them into another string.
If you are new to the String.FormatTemplate or String.Format method, see the Get started with the String.Format method section for a quick overview. Additionally, the concept is exactly the same as String.Format method with a slight ease of use.
Note: this method is after discussion with the dotnet team that addition of this function would result in conflict with the existing String.Format(String, Object[]) since the compiler can't differentiate overloads between Dynamic and Object[].
There is no overloads for this method, it accepts only the following arguments.
String.FormatTemplate(String, Dynamic)
The rest of formatting methods are simply the same.
Examples
var data = new { Description = "This is the description" };
String s = String.FormatTemplate("The description for this message is '{Description}'.", data);
Console.WriteLine(s);
// Result: The description for this message is 'This is the description'.
var data = new { Price = 1234.456 };
String s = String.FormatTemplate("The price was decided at USD {Price:#,##0.00}.", data);
Console.WriteLine(s);
// Result: The price was decided at USD 1,234.46.
var data = new { Expired = DateTime.Now }; //it will generate a dynamic value since it gets the Now method.
String s = String.FormatTemplate("This food will be expired from {Expired:yyyy}, {Expired:MMMM}, and {Expired:dd}.", data);
Console.WriteLine(s);
// Result: This food will be expired from 2022, November, and 01.
Other Information
other documentations will follow...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- 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.1213.1815.4916 | 449 | 12/13/2022 |
| 1.1213.1735.3616 | 407 | 12/13/2022 |
| 1.1213.1602.2760 | 418 | 12/13/2022 |
| 1.1213.1545.3004 | 415 | 12/13/2022 |
| 1.1210.808.1726 | 402 | 12/10/2022 |
| 1.1203.716.66 | 431 | 12/3/2022 |
| 1.1121.1026.3115 | 450 | 11/21/2022 |
| 1.1120.1039.1387 | 448 | 11/20/2022 |
| 1.1120.234.1551 | 464 | 11/20/2022 |