ExpertCs.StringUtils
1.2.1
dotnet add package ExpertCs.StringUtils --version 1.2.1
NuGet\Install-Package ExpertCs.StringUtils -Version 1.2.1
<PackageReference Include="ExpertCs.StringUtils" Version="1.2.1" />
paket add ExpertCs.StringUtils --version 1.2.1
#r "nuget: ExpertCs.StringUtils, 1.2.1"
// Install ExpertCs.StringUtils as a Cake Addin #addin nuget:?package=ExpertCs.StringUtils&version=1.2.1 // Install ExpertCs.StringUtils as a Cake Tool #tool nuget:?package=ExpertCs.StringUtils&version=1.2.1
/// <summary> /// Interpolates an input string using expressions computed for a given object. /// </summary> /// <example> /// var str = "p1={IntField,10:n2}, p2={StrProp}, p3={IntField}, p4={(DateProp.Year+5):n2}, p5={DateProp:g}, 10={7+3}, p7={GetType().Name}, p8={DArray[1]:p2}"; /// /// var obj = new /// { /// DateProp = DateTime.Now, /// IntField = 5, /// StrProp = "-test text-", /// DArray = new decimal[] { 2m, 4.3m, 7m } /// }; /// /// var ret1 = ExpertCs.StringUtils.StringHelper.FormatWithExpressions(obj, str); /// /// var ret2 = obj.FormatWithExpressions(str, System.Globalization.CultureInfo.GetCultureInfo("en")); /// </example>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- System.Linq.Dynamic (>= 1.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.