Skip to content

Instantly share code, notes, and snippets.

@ilyapalkin
ilyapalkin / IMapper.cs
Last active January 25, 2024 17:13
An abstraction over AutoMapper to map several sources into single destination.
/// <summary>
/// Type mapping api
/// </summary>
public interface IMapper
{
/// <summary>
/// Maps the specified source type instance to destination type instance.
/// </summary>
/// <typeparam name="TSource">Source type.</typeparam>
/// <typeparam name="TDestination">Destination type.</typeparam>