SunamoCollectionsChangeContent 26.5.18.6

dotnet add package SunamoCollectionsChangeContent --version 26.5.18.6
                    
NuGet\Install-Package SunamoCollectionsChangeContent -Version 26.5.18.6
                    
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.
<PackageReference Include="SunamoCollectionsChangeContent" Version="26.5.18.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SunamoCollectionsChangeContent" Version="26.5.18.6" />
                    
Directory.Packages.props
<PackageReference Include="SunamoCollectionsChangeContent" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SunamoCollectionsChangeContent --version 26.5.18.6
                    
#r "nuget: SunamoCollectionsChangeContent, 26.5.18.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SunamoCollectionsChangeContent@26.5.18.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SunamoCollectionsChangeContent&version=26.5.18.6
                    
Install as a Cake Addin
#tool nuget:?package=SunamoCollectionsChangeContent&version=26.5.18.6
                    
Install as a Cake Tool

SunamoCollectionsChangeContent

Provides methods for modifying collections of strings by applying custom transformation functions to every element.

Features

  • Apply a Func<string?, string?> to each element with ChangeContent0
  • Pass one or two additional arguments to the transformation via ChangeContent1<TArg> and ChangeContent2<TArg1, TArg2>
  • Transform only elements matching a predicate with ChangeContentWithCondition
  • Switch parameter order of the transformation function with ChangeContentSwitch12<TArg>
  • Automatically remove null or empty strings from results via ChangeContentArgs

Usage

using SunamoCollectionsChangeContent;
using SunamoCollectionsChangeContent._public.SunamoArgs;

var list = new List<string?> { "hello", "world", null, "" };
var args = new ChangeContentArgs { ShouldRemoveNull = true, ShouldRemoveEmpty = true };

var result = CAChangeContent.ChangeContent0(args, list, text => text?.ToUpper());
// result: ["HELLO", "WORLD"]

Target Frameworks

net10.0, net9.0, net8.0

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
26.5.18.6 95 5/18/2026
26.4.7.5 106 4/7/2026
26.4.6.4 98 4/6/2026
26.2.23.3 103 2/23/2026
26.2.7.2 115 2/7/2026
26.2.5.1 119 2/5/2026
26.2.4.1 109 2/4/2026
26.1.3.1 123 1/3/2026
26.1.1.116 113 1/1/2026
26.1.1.115 119 1/1/2026
26.1.1.34 120 1/1/2026
25.12.31.2 123 12/31/2025
25.12.31.1 126 12/31/2025
25.12.21.1 198 12/21/2025
25.6.7.1 224 6/7/2025
25.3.29.1 163 3/29/2025
25.1.29.1 181 1/29/2025
24.11.12.1 195 11/12/2024
24.11.11.2 188 11/11/2024
24.11.11.1 192 11/11/2024
Loading failed

y