public Generator(IPocoGenertor pocoGenerator, ITypeMapper typeMapper) { if (pocoGenerator == null) { throw new ArgumentNullException("pocoGenerator"); } this.typeCache = new Dictionary<Type, IGeneratedType>(); this.typeDescritpionCache = new Dictionary<ITypeDescription, IGeneratedType>(); this.methodCache = new Dictionary<MethodInfo, IGeneratedType>(); this.typeMapper = typeMapper; this.pocoGenerator = pocoGenerator; if (this.typeMapper == null) { this.typeMapper = new DefaultTypeMapper(this.typeDescritpionCache); } }
public Generator(IPocoGenertor pocoGenerator, ITypeMapper typeMapper) { if (pocoGenerator == null) { throw new ArgumentNullException("pocoGenerator"); } this.typeCache = new Dictionary <Type, IGeneratedType>(); this.typeDescritpionCache = new Dictionary <ITypeDescription, IGeneratedType>(); this.methodCache = new Dictionary <MethodInfo, IGeneratedType>(); this.typeMapper = typeMapper; this.pocoGenerator = pocoGenerator; if (this.typeMapper == null) { this.typeMapper = new DefaultTypeMapper(this.typeDescritpionCache); } }
public Generator(IPocoGenertor pocoGenerator) : this(pocoGenerator, null) { }
public Generator(IPocoGenertor pocoGenerator) : this(pocoGenerator, null) { }