LightweightObjectMapper 1.0.0-alpha-0008

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

LightweightObjectMapper

  • 开箱即用、无需预配置(Out of the box, no pre-configuration required)
  • 无运行库引用(No runtime library reference)
  • 映射代码可观察(Observable mapping code)
  • 无反射(No Reflection)
  • 无Emit或其它动态生成(No emit or other dynamic generations)

Usage

Quick use

using LightweightObjectMapper;

class Class1 { }
class Class2 { }
struct Struct1 { }

class1Instance.MapTo<Class2>();
class1Instance.MapTo(class2Instance);

class1Instance.MapTo(ref struct1Instance);

var list1 = new List<Class1>();
list1.MapTo<IEnumerable<Class2>>();
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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.1.0 125 23 days ago
1.0.2 188 9 months ago
1.0.1 135 9 months ago
1.0.0 65,361 3/26/2023
1.0.0-alpha-0012 227 3/25/2023
1.0.0-alpha-0011 211 3/23/2023
1.0.0-alpha-0010 196 3/22/2023
1.0.0-alpha-0009 208 3/21/2023
1.0.0-alpha-0008 218 3/20/2023
1.0.0-alpha-0007 232 3/19/2023
1.0.0-alpha-0006 204 3/18/2023
1.0.0-alpha-0004 221 3/15/2023
1.0.0-alpha-0003 215 3/12/2023
1.0.0-alpha-0002 216 3/11/2023
1.0.0-alpha-0001 217 3/9/2023