public static TDestination Adapt <TSource, TDestination>(TSource source, TDestination destination) { return((TDestination)GetAdapter <TSource, TDestination>(true)(null, new object[] { source, destination })); }
public static object Adapt(object source, object destination, Type sourceType, Type destinationType) { return(GetAdapter(sourceType, destinationType, true)(null, new object[] { source, destination })); }
public static TDestination Adapt <TDestination>(object source) { return((TDestination)GetAdapter(source.GetType(), typeof(TDestination))(null, new object[] { source })); }