From a8b4ae893932902a057c474c13ace8a83c7014b0 Mon Sep 17 00:00:00 2001 From: "simon.cropp" Date: Wed, 11 May 2011 21:25:58 +1000 Subject: [PATCH] no point null checking because these parameters will ahve been used already --- Dapper/SqlMapper.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dapper/SqlMapper.cs b/Dapper/SqlMapper.cs index 0e23b4b..59e756a 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; -- GitLab