[Mono-list] Making code conditional on "not running on mono"?
Stuart Ballard
stuart.ballard@corp.fast.net
Wed, 14 May 2003 10:22:44 -0400
I have a C# program which uses some classes (specifically
System.DirectoryServices) that aren't implemented in Mono. The code in
question is not critical to the application and the majority of the
functionality would work fine if it wasn't there. I can't remove the
code entirely (because in some cases we actually do need the
functionality) but I can't compile on Mono with it present, because the
classes aren't found.
Is there any way I can avoid having to have two different copies of the
source code, one for Mono without the feature and one for MS.NET with
the feature included?
Thanks,
Stuart.
--
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net