提交 a8b4ae89 编写于 作者: S simon.cropp

no point null checking because these parameters will ahve been used already

上级 5488e8c6
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Diagnostics;
using System.Dynamic; using System.Dynamic;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
...@@ -809,11 +810,6 @@ public class GridReader : IDisposable ...@@ -809,11 +810,6 @@ public class GridReader : IDisposable
private readonly string sql; private readonly string sql;
internal GridReader(IDbCommand command, IDataReader reader, IDbConnection connection, 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.sql = sql;
this.command = command; this.command = command;
this.connection = connection; this.connection = connection;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册