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

move some variables closer to usage

上级 bcab7d7b
......@@ -263,7 +263,6 @@ class DontMap {}
{
if (info.Deserializer == null)
{
var split = 0;
int current = 0;
Func<int> nextSplit = () =>
......@@ -283,7 +282,7 @@ class DontMap {}
var otherDeserializer = new List<object>();
split = nextSplit();
int split = nextSplit();
info.Deserializer = GetDeserializer<TFirst>(reader, 0, split);
if (typeof(TSecond) != typeof(DontMap))
......@@ -444,10 +443,10 @@ public static void PackListParameters(IDbCommand command, string namePrefix, obj
var list = value as IEnumerable;
var count = 0;
bool isString = value is IEnumerable<string>;
if (list != null)
{
bool isString = value is IEnumerable<string>;
foreach (var item in list)
{
count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册