static void Convert <TDst>(ITemplateInterf1 <TDst> dst, ITemplateInterf1 <decimal> src, DtoComplex dto) where TDst : new() { dst.A = new TDst(); var name = dto.As <IName>(dst.A); name.Name = src.A; }
static void Convert <TSrc>(ITemplateInterf1 <decimal> dst, ITemplateInterf1 <TSrc> src, DtoComplex dto) { dst.A = (decimal)(int)(object)src.A; }
static void Convert <TDst>(ITemplateInterf1 <TDst> dst, ITemplateInterf1 <int> src, DtoComplex dto) { dst.A = (TDst)(object)(decimal)src.A; }
static void Convert <TDst>(ITemplateInterf1 <TDst> dst, ITemplateInterf1 <decimal> src, DtoComplex dto) where TDst : Item, new() { dst.A = new TDst(); dst.A.Name = src.A; }
static void Convert <TDst, TSrc>(ITemplateInterf1 <TDst> dst, ITemplateInterf1 <TSrc> src, DtoComplex dto) { dst.A = dto.CastValue(src.A, out TDst t); }