MyAutoMapper 2.0.0.1

dotnet add package MyAutoMapper --version 2.0.0.1
NuGet\Install-Package MyAutoMapper -Version 2.0.0.1
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="MyAutoMapper" Version="2.0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MyAutoMapper --version 2.0.0.1
#r "nuget: MyAutoMapper, 2.0.0.1"
#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 MyAutoMapper as a Cake Addin
#addin nuget:?package=MyAutoMapper&version=2.0.0.1

// Install MyAutoMapper as a Cake Tool
#tool nuget:?package=MyAutoMapper&version=2.0.0.1

MyAutoMapper

Install

NuGet\Install-Package MyAutoMapper -Version 1.0.0

version of package for use last version see https://www.nuget.org/packages/MyAutoMapper/

How to use


var result1 = new { naME = "adi", suRName = "soyadi", age = 2 }.Map<Person>();
Console.WriteLine(JsonSerializer.Serialize(result1));
//output:{"Name":"adi","SurName":"soyadi"}

var result2 = new { naME = "adi", suRName = "soyadi", age = 2 }.Create();
Console.WriteLine(JsonSerializer.Serialize(result2));
//output:{"name":"adi","surname":"soyadi","age":2}

var result3 = new Person { Name = "nm", SurName = "snm" };
Console.WriteLine(JsonSerializer.Serialize(result3.Set("Name", "xxx")));
//output:{"Name":"xxx","SurName":"snm"}

Console.WriteLine(result3.Get("SurName"));
//output:snm

Console.Read();

class Person {
    public string Name { get; set; }
    public string SurName { get; set; }
}

<code>Output</code>

{"Name":"adi","SurName":"soyadi"}
{"name":"adi","surname":"soyadi","age":2}
{"Name":"xxx","SurName":"snm"}
snm
Product 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

    • 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
2.0.0.1 170 8/27/2023
2.0.0 115 8/27/2023
1.0.0 127 8/24/2023

nuget contents added