public DtoComplexInvoker(DtoComplexCache copyCache, DtoComplexState state, DtoComplex complex) { m_copyCache = copyCache; m_state = state; m_complex = complex; m_copier = new DtoCopier(m_state.Casts); Cast = new DtoComplexCastInvoker(m_copier); }
public DtoComplex(ValidationRepository validationRepository = null) { m_copyCache = new DtoComplexCache(m_state); m_invoker = new DtoComplexInvoker(m_copyCache, m_state, this); ValidationRepository = validationRepository; if (validationRepository == null) { ValidationRepository = new ValidationRepository(); } ValidationRepository.SetExtension(typeof(DtoComplex), this); }