Commit 4bcb1747 authored by simon.cropp's avatar simon.cropp

move some variables closer to usage

parent bcab7d7b
...@@ -263,7 +263,6 @@ class DontMap {} ...@@ -263,7 +263,6 @@ class DontMap {}
{ {
if (info.Deserializer == null) if (info.Deserializer == null)
{ {
var split = 0;
int current = 0; int current = 0;
Func<int> nextSplit = () => Func<int> nextSplit = () =>
...@@ -283,7 +282,7 @@ class DontMap {} ...@@ -283,7 +282,7 @@ class DontMap {}
var otherDeserializer = new List<object>(); var otherDeserializer = new List<object>();
split = nextSplit(); int split = nextSplit();
info.Deserializer = GetDeserializer<TFirst>(reader, 0, split); info.Deserializer = GetDeserializer<TFirst>(reader, 0, split);
if (typeof(TSecond) != typeof(DontMap)) if (typeof(TSecond) != typeof(DontMap))
...@@ -444,10 +443,10 @@ public static void PackListParameters(IDbCommand command, string namePrefix, obj ...@@ -444,10 +443,10 @@ public static void PackListParameters(IDbCommand command, string namePrefix, obj
var list = value as IEnumerable; var list = value as IEnumerable;
var count = 0; var count = 0;
bool isString = value is IEnumerable<string>;
if (list != null) if (list != null)
{ {
bool isString = value is IEnumerable<string>;
foreach (var item in list) foreach (var item in list)
{ {
count++; count++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment