SUPPRESS WARNINGS FOR XML COMMENTS

File > Edit > View Project (click) Bottom of the drop down bow (click on Open/Current work > Properties), opened project properties page at "Build" under "Output". "Uncheck" XML Documentation checkbox. Rebuild and no warnings.

C# AutoMapper Tutorial

C# AutoMapper Tutorial

using System;
using AutoMapper;

public class Foo
{
	public string A { get; set; }
	public int B { get; set; }
}

public class Program
{
	public static void Main()		
	{
		Mapper.CreateMap<Foo,Foo>();
		
		var foo = new Foo { A="test", B=100500 };
		
		var foo_copy = Mapper.Map<Foo>(foo);
		
		Console.WriteLine("foo type is {0}", foo.GetType());
		Console.WriteLine("foo_copy type is {0}", foo_copy.GetType());

		Console.WriteLine("foo.A={0} foo.B={1}", foo.A, foo.B);
		Console.WriteLine("foo_copy.A={0} foo_copy.B={1}", foo_copy.A, foo_copy.B);
	}
}

or map propeties with same name from one type to another

using System;
using AutoMapper;

public class Foo
{
	public string A { get; set; }
	public int B { get; set; }	
}

public class Bar
{
	public string A { get; set; }
	public int B { get; set; }	
}

public class Program
{
	public static void Main()		
	{
		Mapper.CreateMap<Foo,Bar>();
		
		var foo = new Foo { A="test", B=100500 };
		
		var bar = Mapper.Map<Bar>(foo);
		
		Console.WriteLine("foo type is {0}", foo.GetType());
		Console.WriteLine("bar type is {0}", bar.GetType());

		Console.WriteLine("foo.A={0} foo.B={1}", foo.A, foo.B);
		Console.WriteLine("bar.A={0} bar.B={1}", bar.A, bar.B);
	}
}