In C# dotNET for Mono, is there an easier way of doing this?
#if __MonoCS__
public static SqliteConnection NewConnection
#else
public static SQLiteConnec
Well, you can use a using alias directive:
#if __MonoCS__
using SQLiteConnection = Foo.Bar.SqliteConnection;
#endif
Then you can use SQLiteConnection
everywhere within the same file.
You may want to use the adapter pattern to put this just in a single piece of code though, so all the rest of your code can be the same either way.