Consider using 'out' instead of 'ref' for methods that only return values to
avoid misleading compiller error:
Use of unassigned local variable '...'.
For example methods:
sqlite3_open
sqlite3_prepare_v2
can be declared as
public static int sqlite3_open(string zFilename, out sqlite3 ppDb);
public static int sqlite3_prepare_v2(sqlite3 db, string zSql, int nBytes, out
sqlite3_stmt ppStmt, ref string pzTail);
without canges in logic. And with a little bit of change to:
public static int sqlite3_open(string zFilename, out sqlite3 ppDb);
public static int sqlite3_prepare_v2(sqlite3 db, string zSql, int nBytes, out
sqlite3_stmt ppStmt, out string pzTail);
Original issue reported on code.google.com by iyu...@gmail.com on 17 Jul 2011 at 2:24
Original issue reported on code.google.com by
iyu...@gmail.com
on 17 Jul 2011 at 2:24