ktsu.DelegateTransform 1.0.0

Prefix Reserved
dotnet add package ktsu.DelegateTransform --version 1.0.0                
NuGet\Install-Package ktsu.DelegateTransform -Version 1.0.0                
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="ktsu.DelegateTransform" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ktsu.DelegateTransform --version 1.0.0                
#r "nuget: ktsu.DelegateTransform, 1.0.0"                
#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.
// Install ktsu.DelegateTransform as a Cake Addin
#addin nuget:?package=ktsu.DelegateTransform&version=1.0.0

// Install ktsu.DelegateTransform as a Cake Tool
#tool nuget:?package=ktsu.DelegateTransform&version=1.0.0                

DelegateTransform

DelegateTransform is a utility library for transforming values using delegates in C#. It provides methods to apply transformations using ActionRef, Func, and FuncRef delegates.

Installation

To install DelegateTransform, add the following package to your project:

dotnet add package DelegateTransform

Usage

With ActionRef

The With method can be used with an ActionRef delegate to modify the input value by reference.

int input = 5; DelegateTransform.With(input, (ref int x) => x *= 2); // input is now 10

With Func

The With method can be used with a Func delegate to transform the input value.

int input = 5; int result = DelegateTransform.With(input, (int x) => x * 2); // result is 10

With FuncRef

The With method can be used with a FuncRef delegate to transform the input value by reference.

int input = 5; DelegateTransform.With(input, (ref int x) => x *= 2); // input is now 10

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

License

DelegateTransform is licensed under the MIT license. See the LICENSE file for more information.

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. 
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
1.0.0 0 1/10/2025

## v1.0.0 (major)

Changes since 0.0.0.0:

- Add AllowEmptyCollection attribute to SEARCH_TAGS parameter in MakeNotesForRange function ([@matt-edmondson](https://github.com/matt-edmondson))
- Enable debugging trace in changelog and version scripts ([@matt-edmondson](https://github.com/matt-edmondson))
- Enhance GitHub Actions workflow by enabling LFS and fetching tags ([@matt-edmondson](https://github.com/matt-edmondson))
- Fix formatting issues and handle empty tag scenarios in changelog script ([@matt-edmondson](https://github.com/matt-edmondson))
- Initial commit ([@matt-edmondson](https://github.com/matt-edmondson))
- Refactor tag handling in changelog and version scripts to ensure default values are set correctly when no tags are found ([@matt-edmondson](https://github.com/matt-edmondson))
- Set default version to 'v1.0.0-pre.0' if no tags are found ([@matt-edmondson](https://github.com/matt-edmondson))