Skip to content

Commit 6cf5c05

Browse files
committed
move make generic method out of loop
1 parent 539e3a7 commit 6cf5c05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SQLite.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3012,11 +3012,11 @@ public IEnumerable<T> ExecuteDeferredQuery<T> (TableMapping map)
30123012
}
30133013
else if (map.Method == TableMapping.MapMethod.ByName)
30143014
{
3015-
for (int i = 0; i < cols.Length; i++) {
3016-
var getSetter = typeof(FastColumnSetter)
3015+
var getSetter = typeof(FastColumnSetter)
30173016
.GetMethod (nameof(FastColumnSetter.GetFastSetter),
3018-
BindingFlags.NonPublic | BindingFlags.Static).MakeGenericMethod (map.MappedType);
3019-
3017+
BindingFlags.NonPublic | BindingFlags.Static).MakeGenericMethod (map.MappedType);
3018+
3019+
for (int i = 0; i < cols.Length; i++) {
30203020
var name = SQLite3.ColumnName16 (stmt, i);
30213021
cols[i] = map.FindColumn (name);
30223022
if (cols[i] != null)

0 commit comments

Comments
 (0)