[Mono-list] Mono Newbie Question
Adrien Dessemond
adrien.dessemond at softhome.net
Fri Jul 20 12:10:09 EDT 2007
Hello Dave,
> My main issue is .net uses System.Data.SQLite and mono uses
> Mono.Data.Sqlite so I could do with knowing if there is a global default
> compilation symbol like MONO so I can use #if() to select which
> namespace to use. I realise I also need to do the same in the project
> files reference section which may scupper my plans completely :)
A solution could be to make a namespace alias like that :
#if(MSNet)
using System.Data.SQLite = SDSQL;
#else
using System.Data.Sqlite = SDSQL;
#endif
Next refer to it with "SDSQL."
Thank you for your question, I just saw a concrete real-life example of
this C# language feature. But I would report this typography difference as
a bug anyway. I hope that will help you to fix your issue.
Kind regards,
Adrien
More information about the Mono-list
mailing list