CommonNetFuncs.FastMap 3.7.0

dotnet add package CommonNetFuncs.FastMap --version 3.7.0
                    
NuGet\Install-Package CommonNetFuncs.FastMap -Version 3.7.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.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.FastMap" Version="3.7.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.7.0
                    
#r "nuget: CommonNetFuncs.FastMap, 3.7.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.7.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.7.0
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.FastMap&version=3.7.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
3.7.0 150 8/18/2025
3.6.27 124 8/18/2025
3.6.26 135 8/14/2025
3.6.25 138 8/13/2025
3.6.24 137 8/12/2025
3.6.19 104 7/28/2025
3.6.18 325 7/25/2025
3.6.6 444 7/21/2025
3.6.1 147 7/14/2025
3.6.0 171 7/14/2025
3.5.3 146 7/10/2025
3.5.0 153 7/7/2025
3.4.23 147 6/26/2025
3.4.21 147 6/26/2025
3.4.20 142 6/25/2025
3.4.8 304 6/11/2025
3.4.3 148 6/2/2025
3.4.2 153 6/2/2025
3.4.1 95 5/30/2025
3.4.0 107 5/30/2025
3.3.11 157 5/19/2025
3.3.10 239 5/13/2025
3.3.0 176 4/29/2025
3.2.13 199 2/13/2025
3.2.0 137 12/19/2024
3.1.0 156 12/6/2024
3.0.0 131 12/3/2024
2.1.3 124 12/3/2024
2.1.2 121 12/3/2024
2.1.0 124 12/2/2024
2.0.5 118 11/26/2024
2.0.2 141 11/18/2024
2.0.1 117 11/15/2024
2.0.0 114 11/14/2024
1.0.47 123 11/14/2024
1.0.42 148 11/12/2024
1.0.40 119 11/12/2024
1.0.37 132 11/4/2024
1.0.31 135 10/31/2024
1.0.28 141 10/25/2024
1.0.26 185 10/18/2024
1.0.25 120 10/17/2024
1.0.24 118 10/17/2024
1.0.18 131 10/11/2024
1.0.17 140 9/27/2024
1.0.16 142 9/27/2024
1.0.14 131 9/23/2024
1.0.13 145 9/18/2024
1.0.12 131 9/18/2024
1.0.11 126 9/18/2024
1.0.10 165 9/11/2024
1.0.9 153 9/11/2024
1.0.8 147 9/11/2024
1.0.7 155 9/11/2024
1.0.1 163 9/4/2024
1.0.0 146 9/2/2024