CommonNetFuncs.FastMap 3.5.0

dotnet add package CommonNetFuncs.FastMap --version 3.5.0
                    
NuGet\Install-Package CommonNetFuncs.FastMap -Version 3.5.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.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.FastMap" Version="3.5.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.5.0
                    
#r "nuget: CommonNetFuncs.FastMap, 3.5.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.
#addin nuget:?package=CommonNetFuncs.FastMap&version=3.5.0
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.FastMap&version=3.5.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.5.0 39 7/7/2025
3.4.23 134 6/26/2025
3.4.21 135 6/26/2025
3.4.20 130 6/25/2025
3.4.8 288 6/11/2025
3.4.3 137 6/2/2025
3.4.2 139 6/2/2025
3.4.1 81 5/30/2025
3.4.0 94 5/30/2025
3.3.11 144 5/19/2025
3.3.10 225 5/13/2025
3.3.0 164 4/29/2025
3.2.13 187 2/13/2025
3.2.0 123 12/19/2024
3.1.0 142 12/6/2024
3.0.0 117 12/3/2024
2.1.3 106 12/3/2024
2.1.2 108 12/3/2024
2.1.0 112 12/2/2024
2.0.5 106 11/26/2024
2.0.2 129 11/18/2024
2.0.1 106 11/15/2024
2.0.0 99 11/14/2024
1.0.47 112 11/14/2024
1.0.42 134 11/12/2024
1.0.40 109 11/12/2024
1.0.37 116 11/4/2024
1.0.31 116 10/31/2024
1.0.28 127 10/25/2024
1.0.26 173 10/18/2024
1.0.25 110 10/17/2024
1.0.24 104 10/17/2024
1.0.18 119 10/11/2024
1.0.17 128 9/27/2024
1.0.16 129 9/27/2024
1.0.14 117 9/23/2024
1.0.13 130 9/18/2024
1.0.12 121 9/18/2024
1.0.11 116 9/18/2024
1.0.10 154 9/11/2024
1.0.9 140 9/11/2024
1.0.8 138 9/11/2024
1.0.7 142 9/11/2024
1.0.1 151 9/4/2024
1.0.0 131 9/2/2024