--- a/System.Data.SQLite/SQLite3.cs
+++ b/System.Data.SQLite/SQLite3.cs
@@ -1,8 +1,8 @@
-/********************************************************
- * ADO.NET 2.0 Data Provider for SQLite Version 3.X
- * Written by Robert Simpson (robert@blackcastlesoft.com)
- * 
- * Released to the public domain, use at your own risk!
+/********************************************************
+ * ADO.NET 2.0 Data Provider for SQLite Version 3.X
+ * Written by Robert Simpson (robert@blackcastlesoft.com)
+ * 
+ * Released to the public domain, use at your own risk!
  ********************************************************/
 
 using System.Runtime.InteropServices;
@@ -107,7 +107,7 @@
 
 #if !SQLITE_STANDARD
                 int n = UnsafeNativeMethods.sqlite3_open_interop(ToUTF8(strFilename), (int) flags, out db);
-#else
+#else
         int n = UnsafeNativeMethods.sqlite3_open_v2(ToUTF8(strFilename), out db, (int)flags, IntPtr.Zero);
 #endif
                 if (n > 0) throw new SQLiteException(n, null);
@@ -184,7 +184,7 @@
 
 #if !SQLITE_STANDARD
             n = UnsafeNativeMethods.sqlite3_reset_interop(stmt._sqlite_stmt);
-#else
+#else
       n = UnsafeNativeMethods.sqlite3_reset(stmt._sqlite_stmt);
 #endif
 
@@ -244,8 +244,8 @@
                 {
 #if !SQLITE_STANDARD
                     n = UnsafeNativeMethods.sqlite3_prepare_interop(_sql, psql, b.Length - 1, out stmt, out ptr, out len);
-#else
-          n = UnsafeNativeMethods.sqlite3_prepare(_sql, psql, b.Length - 1, out stmt, out ptr);
+#else
+          n = UnsafeNativeMethods.sqlite3_prepare(_sql, psql, b.Length - 1, out stmt, out ptr);
           len = -1;
 #endif
 
@@ -275,7 +275,7 @@
                                 cmd.SetTypes(typedefs);
 
                             return cmd;
-                        }
+                        }
 #if !PLATFORM_COMPACTFRAMEWORK
                         else if (_buildingSchema == false &&
                                  String.Compare(SQLiteLastError(), 0, "no such table: TEMP.SCHEMA", 0, 26,
@@ -346,7 +346,7 @@
         {
 #if !PLATFORM_COMPACTFRAMEWORK
             int n = UnsafeNativeMethods.sqlite3_bind_double(stmt._sqlite_stmt, index, value);
-#else
+#else
       int n = UnsafeNativeMethods.sqlite3_bind_double_interop(stmt._sqlite_stmt, index, ref value);
 #endif
             if (n > 0) throw new SQLiteException(n, SQLiteLastError());
@@ -362,7 +362,7 @@
         {
 #if !PLATFORM_COMPACTFRAMEWORK
             int n = UnsafeNativeMethods.sqlite3_bind_int64(stmt._sqlite_stmt, index, value);
-#else
+#else
       int n = UnsafeNativeMethods.sqlite3_bind_int64_interop(stmt._sqlite_stmt, index, ref value);
 #endif
             if (n > 0) throw new SQLiteException(n, SQLiteLastError());
@@ -407,7 +407,7 @@
             return
                 UTF8ToString(
                     UnsafeNativeMethods.sqlite3_bind_parameter_name_interop(stmt._sqlite_stmt, index, out len), len);
-#else
+#else
       return UTF8ToString(UnsafeNativeMethods.sqlite3_bind_parameter_name(stmt._sqlite_stmt, index), -1);
 #endif
         }
@@ -427,7 +427,7 @@
 #if !SQLITE_STANDARD
             int len;
             return UTF8ToString(UnsafeNativeMethods.sqlite3_column_name_interop(stmt._sqlite_stmt, index, out len), len);
-#else
+#else
       return UTF8ToString(UnsafeNativeMethods.sqlite3_column_name(stmt._sqlite_stmt, index), -1);
 #endif
         }
@@ -442,8 +442,8 @@
             int len;
 #if !SQLITE_STANDARD
             IntPtr p = UnsafeNativeMethods.sqlite3_column_decltype_interop(stmt._sqlite_stmt, index, out len);
-#else
-      len = -1;
+#else
+      len = -1;
       IntPtr p = UnsafeNativeMethods.sqlite3_column_decltype(stmt._sqlite_stmt, index);
 #endif
             nAffinity = ColumnAffinity(stmt, index);
@@ -492,7 +492,7 @@
             return
                 UTF8ToString(UnsafeNativeMethods.sqlite3_column_origin_name_interop(stmt._sqlite_stmt, index, out len),
                              len);
-#else
+#else
       return UTF8ToString(UnsafeNativeMethods.sqlite3_column_origin_name(stmt._sqlite_stmt, index), -1);
 #endif
         }
@@ -504,7 +504,7 @@
             return
                 UTF8ToString(
                     UnsafeNativeMethods.sqlite3_column_database_name_interop(stmt._sqlite_stmt, index, out len), len);
-#else
+#else
       return UTF8ToString(UnsafeNativeMethods.sqlite3_column_database_name(stmt._sqlite_stmt, index), -1);
 #endif
         }
@@ -515,7 +515,7 @@
             int len;
             return UTF8ToString(
                 UnsafeNativeMethods.sqlite3_column_table_name_interop(stmt._sqlite_stmt, index, out len), len);
-#else
+#else
       return UTF8ToString(UnsafeNativeMethods.sqlite3_column_table_name(stmt._sqlite_stmt, index), -1);
 #endif
         }
@@ -538,10 +538,10 @@
                                                                           ToUTF8(column), out dataTypePtr,
                                                                           out collSeqPtr, out nnotNull, out nprimaryKey,
                                                                           out nautoInc, out dtLen, out csLen);
-#else
-      dtLen = -1;
-      csLen = -1;
-
+#else
+      dtLen = -1;
+      csLen = -1;
+
       n = UnsafeNativeMethods.sqlite3_table_column_metadata(_sql, ToUTF8(dataBase), ToUTF8(table), ToUTF8(column), out dataTypePtr, out collSeqPtr, out nnotNull, out nprimaryKey, out nautoInc);
 #endif
             if (n > 0) throw new SQLiteException(n, SQLiteLastError());
@@ -559,7 +559,7 @@
             double value;
 #if !PLATFORM_COMPACTFRAMEWORK
             value = UnsafeNativeMethods.sqlite3_column_double(stmt._sqlite_stmt, index);
-#else
+#else
       UnsafeNativeMethods.sqlite3_column_double_interop(stmt._sqlite_stmt, index, out value);
 #endif
             return value;
@@ -575,7 +575,7 @@
             long value;
 #if !PLATFORM_COMPACTFRAMEWORK
             value = UnsafeNativeMethods.sqlite3_column_int64(stmt._sqlite_stmt, index);
-#else
+#else
       UnsafeNativeMethods.sqlite3_column_int64_interop(stmt._sqlite_stmt, index, out value);
 #endif
             return value;
@@ -586,7 +586,7 @@
 #if !SQLITE_STANDARD
             int len;
             return UTF8ToString(UnsafeNativeMethods.sqlite3_column_text_interop(stmt._sqlite_stmt, index, out len), len);
-#else
+#else
       return UTF8ToString(UnsafeNativeMethods.sqlite3_column_text(stmt._sqlite_stmt, index), -1);
 #endif
         }
@@ -596,7 +596,7 @@
 #if !SQLITE_STANDARD
             int len;
             return ToDateTime(UnsafeNativeMethods.sqlite3_column_text_interop(stmt._sqlite_stmt, index, out len), len);
-#else
+#else
       return ToDateTime(UnsafeNativeMethods.sqlite3_column_text(stmt._sqlite_stmt, index), -1);
 #endif
         }
@@ -665,8 +665,8 @@
             if (n == 0)
                 n = UnsafeNativeMethods.sqlite3_create_function_interop(_sql, ToUTF8(strFunction), nArgs, 1, IntPtr.Zero,
                                                                         func, funcstep, funcfinal, needCollSeq ? 1 : 0);
-#else
-      n = UnsafeNativeMethods.sqlite3_create_function(_sql, ToUTF8(strFunction), nArgs, 4, IntPtr.Zero, func, funcstep, funcfinal);
+#else
+      n = UnsafeNativeMethods.sqlite3_create_function(_sql, ToUTF8(strFunction), nArgs, 4, IntPtr.Zero, func, funcstep, funcfinal);
       if (n == 0) n = UnsafeNativeMethods.sqlite3_create_function(_sql, ToUTF8(strFunction), nArgs, 1, IntPtr.Zero, func, funcstep, funcfinal);
 #endif
             if (n > 0) throw new SQLiteException(n, SQLiteLastError());
@@ -704,7 +704,7 @@
             b2 = converter.GetBytes(s2);
 
             return UnsafeNativeMethods.sqlite3_context_collcompare(context, b1, b1.Length, b2, b2.Length);
-#else
+#else
       throw new NotImplementedException();
 #endif
         }
@@ -733,7 +733,7 @@
             b2 = converter.GetBytes(c2);
 
             return UnsafeNativeMethods.sqlite3_context_collcompare(context, b1, b1.Length, b2, b2.Length);
-#else
+#else
       throw new NotImplementedException();
 #endif
         }
@@ -753,7 +753,7 @@
             seq.Encoding = (CollationEncodingEnum) enc;
 
             return seq;
-#else
+#else
       throw new NotImplementedException();
 #endif
         }
@@ -784,7 +784,7 @@
             double value;
 #if !PLATFORM_COMPACTFRAMEWORK
             value = UnsafeNativeMethods.sqlite3_value_double(ptr);
-#else
+#else
       UnsafeNativeMethods.sqlite3_value_double_interop(ptr, out value);
 #endif
             return value;
@@ -800,7 +800,7 @@
             Int64 value;
 #if !PLATFORM_COMPACTFRAMEWORK
             value = UnsafeNativeMethods.sqlite3_value_int64(ptr);
-#else
+#else
       UnsafeNativeMethods.sqlite3_value_int64_interop(ptr, out value);
 #endif
             return value;
@@ -811,7 +811,7 @@
 #if !SQLITE_STANDARD
             int len;
             return UTF8ToString(UnsafeNativeMethods.sqlite3_value_text_interop(ptr, out len), len);
-#else
+#else
       return UTF8ToString(UnsafeNativeMethods.sqlite3_value_text(ptr), -1);
 #endif
         }
@@ -830,7 +830,7 @@
         {
 #if !PLATFORM_COMPACTFRAMEWORK
             UnsafeNativeMethods.sqlite3_result_double(context, value);
-#else
+#else
       UnsafeNativeMethods.sqlite3_result_double_interop(context, ref value);
 #endif
         }
@@ -849,7 +849,7 @@
         {
 #if !PLATFORM_COMPACTFRAMEWORK
             UnsafeNativeMethods.sqlite3_result_int64(context, value);
-#else
+#else
       UnsafeNativeMethods.sqlite3_result_int64_interop(context, ref value);
 #endif
         }
@@ -950,7 +950,7 @@
         {
 #if !SQLITE_STANDARD
             return UnsafeNativeMethods.sqlite3_table_cursor(stmt._sqlite_stmt, db, rootPage);
-#else
+#else
       return -1;
 #endif
         }
@@ -963,7 +963,7 @@
             if (rc == 0) return rowid;
 
             return 0;
-#else
+#else
       return 0;
 #endif
         }
@@ -982,9 +982,9 @@
             if (rc != 0) throw new SQLiteException(rc, "");
 
             collationSequence = UTF8ToString(coll, colllen);
-#else
-      sortMode = 0;
-      onError = 2;
+#else
+      sortMode = 0;
+      onError = 2;
       collationSequence = "BINARY";
 #endif
         }