CommonNetFuncs.FastMap 3.6.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CommonNetFuncs.FastMap --version 3.6.0
                    
NuGet\Install-Package CommonNetFuncs.FastMap -Version 3.6.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="CommonNetFuncs.FastMap" Version="3.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.FastMap" Version="3.6.0" />
                    
Directory.Packages.props
<PackageReference Include="CommonNetFuncs.FastMap" />
                    
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 CommonNetFuncs.FastMap --version 3.6.0
                    
#r "nuget: CommonNetFuncs.FastMap, 3.6.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.
#:package CommonNetFuncs.FastMap@3.6.0
                    
#: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=CommonNetFuncs.FastMap&version=3.6.0
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.FastMap&version=3.6.0
                    
Install as a Cake Tool

CommonNetFuncs.FastMap

nuget

This lightweight project contains a helper method for fast mapping of properties between different objects in .NET applications based on property names.

Contents


FastMapper

A utility class for fast mapping of properties between different objects based on property names.

FastMapper Usage Examples

<details> <summary><h3>Usage Examples</h3></summary>

FastMap

Maps properties from one object to another based on matching property names using expression trees. Speed is comparable in performance to other mapping libraries like AutoMapper and Mapperly, but requires less (no) configuration, and does not rely on source generators to work.

public sealed class SimpleSource
{
    public required string StringProp { get; set; }
    public int IntProp { get; set; }
}

public sealed class SimpleDestination
{
    public required string StringProp { get; set; }
    public string? ExtraStringProp { get; set; }
    public int IntProp { get; set; }
}

SimpleSource source = new()
{
    StringProp = "Test",
    IntProp = 17,
};

SimpleDestination destination = source.FastMap<SimpleSource, SimpleDestination>();
// destination =
//{
//    StringProp = "Test",
//    ExtraStringProp = null,
//    IntProp = 17
//}

</details>

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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
4.0.2 656 12/2/2025
4.0.1 168 11/27/2025
4.0.0 148 11/23/2025
3.8.20 560 12/1/2025
3.8.18 393 11/20/2025
3.8.16 382 11/17/2025
3.8.13 255 11/10/2025
3.8.4 175 10/9/2025
3.7.17 180 9/11/2025
3.7.16 171 9/11/2025
3.7.13 180 9/8/2025
3.7.0 302 8/18/2025
3.6.27 170 8/18/2025
3.6.26 177 8/14/2025
3.6.25 181 8/13/2025
3.6.24 182 8/12/2025
3.6.19 161 7/28/2025
3.6.18 378 7/25/2025
3.6.6 515 7/21/2025
3.6.1 194 7/14/2025
3.6.0 195 7/14/2025
3.5.3 169 7/10/2025
3.5.0 183 7/7/2025
3.4.23 178 6/26/2025
3.4.21 179 6/26/2025
3.4.20 179 6/25/2025
3.4.8 346 6/11/2025
3.4.3 178 6/2/2025
3.4.2 200 6/2/2025
3.4.1 144 5/30/2025
3.4.0 152 5/30/2025
3.3.11 195 5/19/2025
3.3.10 282 5/13/2025
3.3.0 227 4/29/2025
3.2.13 236 2/13/2025
3.2.0 177 12/19/2024
3.1.0 196 12/6/2024
3.0.0 158 12/3/2024
2.1.3 174 12/3/2024
2.1.2 171 12/3/2024
2.1.0 164 12/2/2024
2.0.5 158 11/26/2024
2.0.2 172 11/18/2024
2.0.1 142 11/15/2024
2.0.0 150 11/14/2024
1.0.47 151 11/14/2024
1.0.42 201 11/12/2024
1.0.40 147 11/12/2024
1.0.37 172 11/4/2024
1.0.31 179 10/31/2024
1.0.28 193 10/25/2024
1.0.26 227 10/18/2024
1.0.25 151 10/17/2024
1.0.24 160 10/17/2024
1.0.18 179 10/11/2024
1.0.17 183 9/27/2024
1.0.16 182 9/27/2024
1.0.14 167 9/23/2024
1.0.13 178 9/18/2024
1.0.12 168 9/18/2024
1.0.11 152 9/18/2024
1.0.10 204 9/11/2024
1.0.9 198 9/11/2024
1.0.8 166 9/11/2024
1.0.7 196 9/11/2024
1.0.1 194 9/4/2024
1.0.0 183 9/2/2024