public object GetSrcAdapter(object src) { if (SrcType == src.GetType()) { return(src); } return(DtoFactory.DtoAdapter(src, SrcType)); }
public object GetDstAdapter <TDst>(TDst dst) { if (DstType.IsInterface) { return(DtoFactory.DtoAdapter(dst, DstType)); } else { return(dst); } }