diff --git a/Dapper/SqlMapper.cs b/Dapper/SqlMapper.cs index 0e23b4bad5c293310ca0e42d3ee39e1e06d7a5ea..59e756aaed8aafff73471c9480b07a0d915fa38d 100644 --- a/Dapper/SqlMapper.cs +++ b/Dapper/SqlMapper.cs @@ -8,6 +8,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Data; +using System.Diagnostics; using System.Dynamic; using System.Linq; using System.Reflection; @@ -809,11 +810,6 @@ public class GridReader : IDisposable private readonly string sql; internal GridReader(IDbCommand command, IDataReader reader, IDbConnection connection, string sql) { - if (reader == null) throw new ArgumentNullException("reader"); - if (connection == null) throw new ArgumentNullException("connection"); - if (sql == null) throw new ArgumentNullException("sql"); - if (command == null) throw new ArgumentNullException("command"); - this.sql = sql; this.command = command; this.connection = connection;