public DataRowMapper(Type toType) : base(typeof(DataRow), toType) { if (!toType.IsAbstract) { if (toType.IsNullable()) Ctor = DynamicMethodFactory.GetDefaultCreator(Nullable.GetUnderlyingType(toType)); else Ctor = DynamicMethodFactory.GetDefaultCreator(toType); } }
public ClassMapper(Type fromType, Type toType) : base(fromType, toType) { if (!toType.IsAbstract) { if (toType.IsNullable()) { Ctor = DynamicMethodFactory.GetDefaultCreator(Nullable.GetUnderlyingType(toType)); } else { Ctor = DynamicMethodFactory.GetDefaultCreator(toType); } } }