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
<PackageReference Include="ktsu.DelegateTransform" Version="1.0.0" />
paket add ktsu.DelegateTransform --version 1.0.0
#r "nuget: ktsu.DelegateTransform, 1.0.0"
// 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 | Versions 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. |
-
net8.0
- ktsu.ScopedAction (>= 1.0.14)
-
net9.0
- ktsu.ScopedAction (>= 1.0.14)
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))