/// <summary> /// Adapt the source object to the destination type. /// </summary> /// <typeparam name="TSource">Source type.</typeparam> /// <typeparam name="TDestination">Destination type.</typeparam> /// <param name="source">Source object to adapt.</param> /// <returns>Adapted destination type.</returns> public static TDestination Adapt <TSource, TDestination>(this TSource source) { return(TypeAdapter <TSource, TDestination> .Map(source)); }
public TDestination Adapt <TSource, TDestination>(TSource source, TDestination destination) { return(TypeAdapter.Adapt(source, destination)); }
public object Adapt(object source, object destination, Type sourceType, Type destinationType) { return(TypeAdapter.Adapt(source, destination, sourceType, destinationType)); }
public TDestination Adapt <TDestination>(object source) { return(TypeAdapter.Adapt <TDestination>(source)); }