ImmutaMap 9.1.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ImmutaMap --version 9.1.4
NuGet\Install-Package ImmutaMap -Version 9.1.4
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="ImmutaMap" Version="9.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImmutaMap --version 9.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ImmutaMap, 9.1.4"
#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 ImmutaMap as a Cake Addin #addin nuget:?package=ImmutaMap&version=9.1.4 // Install ImmutaMap as a Cake Tool #tool nuget:?package=ImmutaMap&version=9.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ImmutaMap
Making the mapping of immutable types easier. Maps between records and classes.
Pull down source to review Tests and get an example of what can be done.
Map various property names. Map various property types. Map attributes on properties. Make your own custom mappings and add them.
Examples:
//With Extension
var firstBorn = new Person("Mike", "Doe", 42);
var twin = firstBorn.With(x => x.FirstName, "John");
//or
var twin = firstBorn.With(new {FirstName = "John" });
var item = new Item(Number = 1);
var nextItem = item.With(x => x.Number, number => number++);
//Immutable or not mapped to different immutable or not type
var person = new Person("Mike", "Doe", 42);
var employee = person.To<Employee>();
//Map same properties, different names
var person = new Person("Mike", "Doe", 42);
var employee = person.To<Employee>(config => config.MapName(x => x.FirstName, x => x.Name));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- TripleG3.ExpressionExtensions (>= 7.0.0)
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 |
---|---|---|
9.1.10 | 167 | 1/21/2024 |
9.1.9 | 97 | 1/21/2024 |
9.1.8 | 1,286 | 10/26/2023 |
9.1.7 | 122 | 10/26/2023 |
9.1.6 | 113 | 10/26/2023 |
9.1.5 | 135 | 10/26/2023 |
9.1.4 | 128 | 10/26/2023 |
9.1.3 | 128 | 10/25/2023 |
9.0.0 | 144 | 10/25/2023 |
8.0.1 | 264 | 10/12/2023 |
7.0.1 | 333 | 8/12/2023 |
7.0.0 | 607 | 4/4/2023 |
6.0.0 | 485 | 9/1/2022 |
2.5.3 | 615 | 8/31/2022 |
2.5.2 | 945 | 4/19/2021 |
2.5.1 | 418 | 3/25/2021 |
2.5.0 | 472 | 3/17/2021 |
2.4.1 | 387 | 3/15/2021 |
2.4.0 | 368 | 3/15/2021 |
2.3.0 | 350 | 3/15/2021 |
2.2.0 | 355 | 3/12/2021 |
2.1.0 | 421 | 3/11/2021 |
2.0.0 | 367 | 3/7/2021 |
1.0.9 | 464 | 2/1/2021 |
1.0.8 | 506 | 1/10/2021 |
1.0.7 | 502 | 1/10/2021 |
1.0.6 | 443 | 1/9/2021 |
1.0.5 | 450 | 1/8/2021 |
1.0.4 | 391 | 1/7/2021 |
1.0.3 | 386 | 1/6/2021 |
1.0.2 | 386 | 1/6/2021 |
1.0.1 | 416 | 12/21/2020 |
1.0.0 | 389 | 12/21/2020 |